#!C:\WebServer\Python2.4\python.exe
import cgitb;cgitb.enable()
import sajax1
import SyntaxParser
from time import strftime
from DatabaseConnector import connection

path = 'doc/interface/toc_list.txt'
toc_array = SyntaxParser.buildArray(path)
path = 'doc/interface/databases.txt'
standard_databases = SyntaxParser.buildArray(path)	
path = 'doc/interface/ref_entities.txt'
reference_entities = SyntaxParser.buildArray(path)
path = 'doc/interface/sta_entities.txt'
stat_entities = SyntaxParser.buildArray(path)
path = 'doc/interface/result_att.txt'
value_entities = SyntaxParser.buildHash(path)
path = 'doc/interface/med_entities.txt'
med_entities = SyntaxParser.buildHash(path)
path = 'doc/interface/demo_entities.txt'
demo_entities = SyntaxParser.buildHash(path)

day_array = ["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"]
mon_array = ["01","02","03","04","05","06","07","08","09","10","11","12"]
year_array = []
for year in range(1970, 2050):
	year_array.append(str(year))
comprand_array = [" > ", " >= ", " = ", " <= ", " < ", " != "]
log_ope_array = [" and ", " or "]


def showCdal(toc, db, answers, demo_criterias, diag, med_criterias, global_time_period, global_location):
	cdal_textarea = "<textarea rows='27' cols='56' name='cdal' style='color:navy'>USING "
	cdal_textarea += str(toc).lower()
	cdal_textarea = cdal_textarea + " IN " + str(db).lower() + " "
	cdal_textarea = cdal_textarea + "FIND " + str(answers)
	cdal_textarea = cdal_textarea + " FOR PATIENTS"
	if str(demo_criterias) != "[DEMOGRAPHIC CRITERIAS]":
		cdal_textarea = cdal_textarea + " WHOSE " + str(demo_criterias)
	if str(diag) != "[DIAGNOSIS]":
		cdal_textarea = cdal_textarea + " HAVE DIAGNOSIS KEYWORDS OF " + str(diag)
	if str(med_criterias) != "[MEDICAL CRITERIAS]":
		cdal_textarea = cdal_textarea + " WITH " + str(med_criterias)
	if str(global_time_period) <> "[DEFAULT GLOBAL TIME PERIOD]":
		cdal_textarea = cdal_textarea + " " + str(global_time_period)
	else:
		cdal_textarea = cdal_textarea + " DURING " + str(global_time_period)
	cdal_textarea = cdal_textarea + " IN " + str(global_location).lower()
	
	cdal_textarea += "</textarea>"

	return cdal_textarea
	
def validateGlobalTimePeriod(global_time_period):
	if global_time_period <> '[DEFAULT GLOBAL TIME PERIOD]':
		global_time_period = global_time_period.strip("FROM ") 
		global_time_start = global_time_period.split(" TO ")[0]
		global_time_end = global_time_period.split(" TO ")[1]
		y_from = global_time_start.split("-")[0]
		m_from = global_time_start.split("-")[1]
		d_from = global_time_start.split("-")[2]
		y_to = global_time_end.split("-")[0]
		m_to = global_time_end.split("-")[1]
		d_to = global_time_end.split("-")[2]
		if int(y_from) > int(y_to):
			return "Invalid time range"
		elif int(y_from) == int(y_to):
			if int(m_from) > int(m_to):
				return "Invalid time range"
			elif int(m_from) == int(m_to):
				if int(d_from) > int(d_to):
					return "Invalid time range"
	return ""
#
#def loadSelectOptions(selectCode):
#	array = []
#	filename = selectCode.split()
#	files = ""
#	for token in filename:
#		files = files + token
#	f=open("doc/options_list/%s.txt" %files,"r")
#	for line in f:
#		array.append(line.strip())
#	return array

#suggests up to 5 snomed terms (findings) according to user input
def suggestDiagnosis(diag):
	return ''

sajax1.sajax_init()
sajax1.sajax_export(showCdal)
#sajax1.sajax_export(loadSelectOptions)
sajax1.sajax_export(validateGlobalTimePeriod)
sajax1.sajax_export(suggestDiagnosis)
sajax1.sajax_handle_client_request()
	
print """
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
	<head>
		<title>CDAL GUI</title>
		<style type="text/css">
			body {
				font-family: Verdana, Tahoma, Sans-serif;
				font-size: 10pt;
			 	margin-top: 0;
			 	margin-left: 0;
			}

			#cdal_form select, #cdal_form option, #cdal_form input{
				margin-top: 1pt;
				font-family: Verdana, Tahoma, Sans-serif;
				font-weight: normal;
				font-size: 10pt;
			}
			
			#cdal_form textarea{
				margin-top: 2pt;
				padding: 2px 2px 2px 2px;
				font-family: Verdana, Tahoma, Sans-serif;
				font-weight: bold;
				font-size: 12pt;
			}
			
			#cdal_form label {
				margin-top: 2pt;
				font-family: Verdana, Tahoma, Sans-serif;
				font-weight: bold;
				font-size: 10pt;
			}
			
			#cdal_preview_textarea textarea{
				border: 2px solid;
				padding: 8px 8px 8px 8px;
				font-family: Verdana, Tahoma, Sans-serif;
				font-weight: bold;
				font-size: 12pt;
			}
	
			div.title {
			 	float:right;
				font-weight:bold;
				margin-top: 18px;
				clear: left;
				padding-right: 20px;
				color:#FFFFFF;
				background-color: #39638B;
			}
			
			#banner {
			 	margin-top: 0;
			 	margin-left: 0;
			 	background-image: url('images/top_banner_in02.gif');
			 	background-position: 227px;
				background-repeat: no-repeat;
				background-color:#39638B; 
			}
						
			#title {
			 	font-family: Arial, Tahoma, Sans-serif;
			 	margin-top: 10px;
			 	margin-left: 5px;
			 	margin-bottom: 10px;
			 	font-weight: bold;
			 	font-size: 16pt;
			}
			
			legend {
			 	font-weight: bold;
			 	font-size: 11pt;
			}
			
			fieldset {
			 	font-weight: bold;
			 	font-size: 10pt;
			}
			
			#cdal_form {
			 	width: 50%;
			 	height: 100%;
			 	float: left;
				margin-left: 5px;
				font-size: 10pt;
			}
			
			#cdal_preview {
			 	width: 48%;
			 	height: 100%;
			 	float: left;
			 	text-align: center;
			 	font-size: 10pt;
			}
			
			#errors, #db_error, #answers_error, #global_time_period_error, #global_location_error, #demo_criterias_error, #med_criterias_error, #cdal_error {
			 	font-size: 9pt;
			 	font-weight: normal;
			 	color: red;
			}
			
			#diag_body_suggests {
			 	font-size: 9pt;
			 	font-weight: normal;
			 	color: green;
			}

			#link {
			 	float: right;
			 	margin-right: 5px;
			}
			
			#showMRNcb {
			 	float: right;
			 	font-weight: normal;
			}
		</style>
		
		<script type='text/javascript'>
"""
sajax1.sajax_show_javascript()
print """
			var demo_operator=new Array(), med_operator=new Array(), demo_start=0, med_start=0, demo_condition=new Array(), med_condition=new Array();
			var selectList = ["department code", "sex", "site code", " specimen type", "technician code", "ward id", "attending medical officer", "diagnosis code", " exam code", "hospital code", "patient status", "report typist code"];

			function do_show_cb(cdal_preview_textarea) {
			 	document.getElementById("cdal_preview_textarea").innerHTML = cdal_preview_textarea;
			 	if ((med_operator.length == med_condition.length) && (med_operator.length !=0)) 
			 	{
			 		document.getElementById("submit_query_btn").disabled=true;
			 		return;
			 	}
			 	if (demo_operator.length == demo_condition.length && (demo_operator.length !=0)) 
			 	{
			 		document.getElementById("submit_query_btn").disabled=true;
			 		return;
			 	}
			 	else {
			 		document.getElementById("submit_query_btn").disabled=false;
			 		return;
			 	}
			}
			function do_show() {
                toc = document.getElementById("toc").value;
                db = document.getElementById("db").value;
                ref_ent = document.getElementById("ref_ent").value;
                ans_ent = document.getElementById("ans_ent").value;
                answers = ref_ent + " of " + ans_ent;           
                demo_criterias = document.getElementById("demo_criterias").value;
                diag = document.getElementById("diag").value;
                med_criterias = document.getElementById("med_criterias").value;
                year_from = document.getElementById("year_from").value;
                month_from = document.getElementById("month_from").value;
                day_from = document.getElementById("day_from").value;
                global_time_period_from = year_from + "-" + month_from + "-" + day_from;
                year_to = document.getElementById("year_to").value;
                month_to = document.getElementById("month_to").value;
                day_to = document.getElementById("day_to").value;
                global_time_period_to = year_to + "-" + month_to + "-" + day_to;
                global_time_period = "FROM " + global_time_period_from + " TO " + global_time_period_to;
                global_location = document.getElementById("global_location").value;
			 	
				if (toc == '')
		            toc = "[TOC]";
				if (db == '')
		            db = "[DATABASE]";
                if (ref_ent == '' || ans_ent == '')
                    answers = "[ANSWERS REQUIRED]";
                if (demo_criterias == '')
                    demo_criterias = "[DEMOGRAPHIC CRITERIAS]";
                if (diag == '')
                	diag = "[DIAGNOSIS]";
                if (med_criterias == '')
                    med_criterias = "[MEDICAL CRITERIAS]";
                if (year_from == '' || month_from == '' || day_from == '' || year_to == '' || month_to == '' || day_to == '')                	
					global_time_period = "[DEFAULT GLOBAL TIME PERIOD]";
                if (global_location == '')
					global_location = "[DEFAULT LOCATION]";
			 	x_showCdal(toc, db, answers, demo_criterias, diag, med_criterias, global_time_period, global_location, do_show_cb);
			}
				
			function validate_global_time_cb(validateGlobalTimeCriterias) {
			 		document.getElementById("global_time_period_error").innerHTML = validateGlobalTimeCriterias;
			}
			
			function suggest_diagnosis_cb(suggestDiagnosis) {
			 		document.getElementById("diag_suggests").innerHTML = suggestDiagnosis;
			}
			
			function validate_global_time() {
			 	year_from = document.getElementById("year_from").value;
                month_from = document.getElementById("month_from").value;
                day_from = document.getElementById("day_from").value;
                global_time_period_from = year_from + "-" + month_from + "-" + day_from;
                year_to = document.getElementById("year_to").value;
                month_to = document.getElementById("month_to").value;
                day_to = document.getElementById("day_to").value;
                global_time_period_to = year_to + "-" + month_to + "-" + day_to;
                global_time_period = "FROM " + global_time_period_from + " TO " + global_time_period_to;
				if (year_from == ''||month_from == ''||day_from == ''||year_to == ''||month_to == ''||day_to == '')
                                    global_time_criterias = "[DEFAULT GLOBAL TIME PERIOD]";	
                else	global_time_criterias = global_time_period;
				x_validateGlobalTimePeriod(global_time_criterias, validate_global_time_cb);
			}
			
			function show_med_list() {
				var med_attr, html_script = "", i=0;
				var attendingmedicalofficer = new Array();
attendingmedicalofficer[0] = ",L";
attendingmedicalofficer[1] = ",LR";
attendingmedicalofficer[2] = ",U";
attendingmedicalofficer[3] = "----";
attendingmedicalofficer[4] = "0";
attendingmedicalofficer[5] = "0000";
attendingmedicalofficer[6] = "00000000000";
attendingmedicalofficer[7] = "040594";
attendingmedicalofficer[8] = "070994";
attendingmedicalofficer[9] = "080592";
attendingmedicalofficer[10] = "1";
attendingmedicalofficer[11] = "100394";
attendingmedicalofficer[12] = "1045";
attendingmedicalofficer[13] = "1145";
attendingmedicalofficer[14] = "12";
attendingmedicalofficer[15] = "1200";
attendingmedicalofficer[16] = "120891";
attendingmedicalofficer[17] = "120996";
attendingmedicalofficer[18] = "130894";
attendingmedicalofficer[19] = "14204";
attendingmedicalofficer[20] = "150394";
attendingmedicalofficer[21] = "150503";
attendingmedicalofficer[22] = "1618";
attendingmedicalofficer[23] = "1809";
attendingmedicalofficer[24] = "2145";
attendingmedicalofficer[25] = "231096";
attendingmedicalofficer[26] = "260598";
attendingmedicalofficer[27] = "280-994";
attendingmedicalofficer[28] = "2FL";
attendingmedicalofficer[29] = "300403";
attendingmedicalofficer[30] = "4D";
attendingmedicalofficer[31] = "50";
attendingmedicalofficer[32] = "8449";
attendingmedicalofficer[33] = "8647";
attendingmedicalofficer[34] = "8700";
attendingmedicalofficer[35] = "8701";
attendingmedicalofficer[36] = "8703";
attendingmedicalofficer[37] = "8723";
attendingmedicalofficer[38] = "8740";
attendingmedicalofficer[39] = "8741";
attendingmedicalofficer[40] = "9026";
attendingmedicalofficer[41] = ";P;S";
attendingmedicalofficer[42] = "=A";
attendingmedicalofficer[43] = "A";
attendingmedicalofficer[44] = "AA";
attendingmedicalofficer[45] = "AA CD";
attendingmedicalofficer[46] = "AA DR";
attendingmedicalofficer[47] = "AA MKR";
attendingmedicalofficer[48] = "AA MT";
attendingmedicalofficer[49] = "AA PS";
attendingmedicalofficer[50] = "AA/CD";
attendingmedicalofficer[51] = "AA/CL";
attendingmedicalofficer[52] = "AA/DI";
attendingmedicalofficer[53] = "AA/MKR";
attendingmedicalofficer[54] = "AA/MR";
attendingmedicalofficer[55] = "AAM";
attendingmedicalofficer[56] = "AAY";
attendingmedicalofficer[57] = "AB";
attendingmedicalofficer[58] = "AE";
attendingmedicalofficer[59] = "AE DA";
attendingmedicalofficer[60] = "AE JH";
attendingmedicalofficer[61] = "AE NP";
attendingmedicalofficer[62] = "AE/JY";
attendingmedicalofficer[63] = "AEK";
attendingmedicalofficer[64] = "AH";
attendingmedicalofficer[65] = "AH/AKE";
attendingmedicalofficer[66] = "AJ";
attendingmedicalofficer[67] = "AK";
attendingmedicalofficer[68] = "AK /DM";
attendingmedicalofficer[69] = "AK DM";
attendingmedicalofficer[70] = "AK/";
attendingmedicalofficer[71] = "AK/AP";
attendingmedicalofficer[72] = "AK/CL";
attendingmedicalofficer[73] = "AK/DA";
attendingmedicalofficer[74] = "AK/DD";
attendingmedicalofficer[75] = "AK/DM";
attendingmedicalofficer[76] = "AK/JH";
attendingmedicalofficer[77] = "AK/NP";
attendingmedicalofficer[78] = "AKA";
attendingmedicalofficer[79] = "AKA / DM";
attendingmedicalofficer[80] = "AKA DM";
attendingmedicalofficer[81] = "AKA/AKE";
attendingmedicalofficer[82] = "AKA/DG";
attendingmedicalofficer[83] = "AKA/JH";
attendingmedicalofficer[84] = "AKA/NP";
attendingmedicalofficer[85] = "AKAK";
attendingmedicalofficer[86] = "AKAM";
attendingmedicalofficer[87] = "AKD";
attendingmedicalofficer[88] = "AKE";
attendingmedicalofficer[89] = "AKE / DC";
attendingmedicalofficer[90] = "AKE / DM";
attendingmedicalofficer[91] = "AKE DM";
attendingmedicalofficer[92] = "AKE/AKA";
attendingmedicalofficer[93] = "AKE/CHRIS";
attendingmedicalofficer[94] = "AKE/DC";
attendingmedicalofficer[95] = "AKE/DM";
attendingmedicalofficer[96] = "AKE/KW";
attendingmedicalofficer[97] = "AKE/LS";
attendingmedicalofficer[98] = "AKE/VK";
attendingmedicalofficer[99] = "AKEE";
attendingmedicalofficer[100] = "AKEJ";
attendingmedicalofficer[101] = "AKER";
attendingmedicalofficer[102] = "AKH";
attendingmedicalofficer[103] = "AKJ";
attendingmedicalofficer[104] = "AKK";
attendingmedicalofficer[105] = "AKL";
attendingmedicalofficer[106] = "AKR";
attendingmedicalofficer[107] = "AKSA";
attendingmedicalofficer[108] = "AL";
attendingmedicalofficer[109] = "ALE";
attendingmedicalofficer[110] = "AME";
attendingmedicalofficer[111] = "AN";
attendingmedicalofficer[112] = "AN /MFS";
attendingmedicalofficer[113] = "AN.";
attendingmedicalofficer[114] = "AN1";
attendingmedicalofficer[115] = "AND";
attendingmedicalofficer[116] = "AO";
attendingmedicalofficer[117] = "AP";
attendingmedicalofficer[118] = "AP/KT";
attendingmedicalofficer[119] = "AP/VS";
attendingmedicalofficer[120] = "APO";
attendingmedicalofficer[121] = "AR";
attendingmedicalofficer[122] = "AR/MFS";
attendingmedicalofficer[123] = "AS";
attendingmedicalofficer[124] = "ASE";
attendingmedicalofficer[125] = "ASK";
attendingmedicalofficer[126] = "ASN";
attendingmedicalofficer[127] = "ASP";
attendingmedicalofficer[128] = "AT";
attendingmedicalofficer[129] = "AT/";
attendingmedicalofficer[130] = "AT`";
attendingmedicalofficer[131] = "AY";
attendingmedicalofficer[132] = "AZK";
attendingmedicalofficer[133] = "A[";
attendingmedicalofficer[134] = "A[P";
attendingmedicalofficer[135] = "B";
attendingmedicalofficer[136] = "BALLEINE";
attendingmedicalofficer[137] = "BANK";
attendingmedicalofficer[138] = "BJ";
attendingmedicalofficer[139] = "BO";
attendingmedicalofficer[140] = "BOVA, Colin";
attendingmedicalofficer[141] = "BP";
attendingmedicalofficer[142] = "BP/MFS";
attendingmedicalofficer[143] = "BP/MR";
attendingmedicalofficer[144] = "C";
attendingmedicalofficer[145] = "C CHOW";
attendingmedicalofficer[146] = "C D";
attendingmedicalofficer[147] = "C. CHOW";
attendingmedicalofficer[148] = "C. SMITH";
attendingmedicalofficer[149] = "C;";
attendingmedicalofficer[150] = "CA";
attendingmedicalofficer[151] = "CAA";
attendingmedicalofficer[152] = "CAINS, G";
attendingmedicalofficer[153] = "CAPP";
attendingmedicalofficer[154] = "CB";
attendingmedicalofficer[155] = "CB/MY";
attendingmedicalofficer[156] = "CBM";
attendingmedicalofficer[157] = "CCD";
attendingmedicalofficer[158] = "CCE";
attendingmedicalofficer[159] = "CCHOW";
attendingmedicalofficer[160] = "CD";
attendingmedicalofficer[161] = "CD / CL";
attendingmedicalofficer[162] = "CD AA";
attendingmedicalofficer[163] = "CD CL";
attendingmedicalofficer[164] = "CD DR";
attendingmedicalofficer[165] = "CD DR  AA";
attendingmedicalofficer[166] = "CD DREEVES";
attendingmedicalofficer[167] = "CD DS";
attendingmedicalofficer[168] = "CD MKR";
attendingmedicalofficer[169] = "CD MS";
attendingmedicalofficer[170] = "CD MT";
attendingmedicalofficer[171] = "CD NP";
attendingmedicalofficer[172] = "CD PI";
attendingmedicalofficer[173] = "CD PS";
attendingmedicalofficer[174] = "CD'";
attendingmedicalofficer[175] = "CD.";
attendingmedicalofficer[176] = "CD/";
attendingmedicalofficer[177] = "CD/BP";
attendingmedicalofficer[178] = "CD/CL";
attendingmedicalofficer[179] = "CD/MFS";
attendingmedicalofficer[180] = "CD/MKR";
attendingmedicalofficer[181] = "CD/MT";
attendingmedicalofficer[182] = "CD/NP";
attendingmedicalofficer[183] = "CD/PI";
attendingmedicalofficer[184] = "CD/PS";
attendingmedicalofficer[185] = "CD/WV";
attendingmedicalofficer[186] = "CD00";
attendingmedicalofficer[187] = "CDC";
attendingmedicalofficer[188] = "CDD";
attendingmedicalofficer[189] = "CDE";
attendingmedicalofficer[190] = "CDM";
attendingmedicalofficer[191] = "CDS";
attendingmedicalofficer[192] = "CD]";
attendingmedicalofficer[193] = "CE";
attendingmedicalofficer[194] = "CE/MT";
attendingmedicalofficer[195] = "CF";
attendingmedicalofficer[196] = "CF CD";
attendingmedicalofficer[197] = "CFR";
attendingmedicalofficer[198] = "CH";
attendingmedicalofficer[199] = "CH CD";
attendingmedicalofficer[200] = "CH/JH";
attendingmedicalofficer[201] = "CHEIA";
attendingmedicalofficer[202] = "CHEST CLINIC, T";
attendingmedicalofficer[203] = "CHIRS";
attendingmedicalofficer[204] = "CHOW";
attendingmedicalofficer[205] = "CHOW C";
attendingmedicalofficer[206] = "CHOW/GH";
attendingmedicalofficer[207] = "CHOWDHURY, M.A.";
attendingmedicalofficer[208] = "CHRIS";
attendingmedicalofficer[209] = "CHRIS CHOW";
attendingmedicalofficer[210] = "CHRIS.";
attendingmedicalofficer[211] = "CHRIS/AKE";
attendingmedicalofficer[212] = "CL";
attendingmedicalofficer[213] = "CL AA";
attendingmedicalofficer[214] = "CL CD";
attendingmedicalofficer[215] = "CL DR";
attendingmedicalofficer[216] = "CL MKR";
attendingmedicalofficer[217] = "CL NP";
attendingmedicalofficer[218] = "CL/MKR";
attendingmedicalofficer[219] = "CLELAND, B";
attendingmedicalofficer[220] = "CM";
attendingmedicalofficer[221] = "CONCI";
attendingmedicalofficer[222] = "CONCI / PI";
attendingmedicalofficer[223] = "CS";
attendingmedicalofficer[224] = "CSD";
attendingmedicalofficer[225] = "CT";
attendingmedicalofficer[226] = "CXD";
attendingmedicalofficer[227] = "D";
attendingmedicalofficer[228] = "D REEVES";
attendingmedicalofficer[229] = "D. REEVES";
attendingmedicalofficer[230] = "D. REEVES / CL";
attendingmedicalofficer[231] = "D.REEVES";
attendingmedicalofficer[232] = "D.REEVES.";
attendingmedicalofficer[233] = "DA";
attendingmedicalofficer[234] = "DA  JH";
attendingmedicalofficer[235] = "DA NP";
attendingmedicalofficer[236] = "DA PI";
attendingmedicalofficer[237] = "DA/AK";
attendingmedicalofficer[238] = "DA/JH";
attendingmedicalofficer[239] = "DA/MR";
attendingmedicalofficer[240] = "DA/NP";
attendingmedicalofficer[241] = "DAD";
attendingmedicalofficer[242] = "DAY";
attendingmedicalofficer[243] = "DA]";
attendingmedicalofficer[244] = "DB";
attendingmedicalofficer[245] = "DC";
attendingmedicalofficer[246] = "DC & AKE";
attendingmedicalofficer[247] = "DC/AKE";
attendingmedicalofficer[248] = "DC/AKE/DC";
attendingmedicalofficer[249] = "DC/LS";
attendingmedicalofficer[250] = "DC0";
attendingmedicalofficer[251] = "DCE";
attendingmedicalofficer[252] = "DCLC";
attendingmedicalofficer[253] = "DD";
attendingmedicalofficer[254] = "DDI";
attendingmedicalofficer[255] = "DFM";
attendingmedicalofficer[256] = "DG";
attendingmedicalofficer[257] = "DI";
attendingmedicalofficer[258] = "DI CL";
attendingmedicalofficer[259] = "DI PS";
attendingmedicalofficer[260] = "DI REEFES";
attendingmedicalofficer[261] = "DI REEVES";
attendingmedicalofficer[262] = "DI RREVES";
attendingmedicalofficer[263] = "DI/,KR";
attendingmedicalofficer[264] = "DI/CD";
attendingmedicalofficer[265] = "DI/PS";
attendingmedicalofficer[266] = "DIANE";
attendingmedicalofficer[267] = "DIANNE";
attendingmedicalofficer[268] = "DIANNE MCKAY";
attendingmedicalofficer[269] = "DIMITRIADIS";
attendingmedicalofficer[270] = "DIO";
attendingmedicalofficer[271] = "DIR";
attendingmedicalofficer[272] = "DIREEVES";
attendingmedicalofficer[273] = "DJ";
attendingmedicalofficer[274] = "DK";
attendingmedicalofficer[275] = "DM";
attendingmedicalofficer[276] = "DM & DC";
attendingmedicalofficer[277] = "DM / AKE";
attendingmedicalofficer[278] = "DM AKE";
attendingmedicalofficer[279] = "DM/AK";
attendingmedicalofficer[280] = "DM/AKE";
attendingmedicalofficer[281] = "DM/JH";
attendingmedicalofficer[282] = "DMB";
attendingmedicalofficer[283] = "DMC";
attendingmedicalofficer[284] = "DMD";
attendingmedicalofficer[285] = "DMT";
attendingmedicalofficer[286] = "DORIS";
attendingmedicalofficer[287] = "DOW";
attendingmedicalofficer[288] = "DR";
attendingmedicalofficer[289] = "DR  MCKENZIE";
attendingmedicalofficer[290] = "DR AA";
attendingmedicalofficer[291] = "DR BALLEINE";
attendingmedicalofficer[292] = "DR BREWER";
attendingmedicalofficer[293] = "DR CD";
attendingmedicalofficer[294] = "DR CL";
attendingmedicalofficer[295] = "DR FERNANDO";
attendingmedicalofficer[296] = "DR J BREWER";
attendingmedicalofficer[297] = "DR MACINDOE";
attendingmedicalofficer[298] = "DR MCKAY";
attendingmedicalofficer[299] = "DR MCKENZIE";
attendingmedicalofficer[300] = "DR MKR";
attendingmedicalofficer[301] = "DR MT";
attendingmedicalofficer[302] = "DR P MCKENZIE";
attendingmedicalofficer[303] = "DR PS";
attendingmedicalofficer[304] = "DR R MACINDOE";
attendingmedicalofficer[305] = "DR REEVES";
attendingmedicalofficer[306] = "DR REGAN";
attendingmedicalofficer[307] = "DR S FERNANO";
attendingmedicalofficer[308] = "DR SRIVASTAVA";
attendingmedicalofficer[309] = "DR WV";
attendingmedicalofficer[310] = "DR.";
attendingmedicalofficer[311] = "DR. BALLEIN";
attendingmedicalofficer[312] = "DR. BALLEINE";
attendingmedicalofficer[313] = "DR. BREWER";
attendingmedicalofficer[314] = "DR. C. CHOW";
attendingmedicalofficer[315] = "DR. C. SOUTHAN";
attendingmedicalofficer[316] = "DR. CARR";
attendingmedicalofficer[317] = "DR. CHOW";
attendingmedicalofficer[318] = "DR. CHRIS CHOW";
attendingmedicalofficer[319] = "DR. FERNANDO";
attendingmedicalofficer[320] = "DR. GARY YEOH";
attendingmedicalofficer[321] = "DR. H. OGLE";
attendingmedicalofficer[322] = "DR. J. BREWER";
attendingmedicalofficer[323] = "DR. JESSUP";
attendingmedicalofficer[324] = "DR. KENCH";
attendingmedicalofficer[325] = "DR. KUBE";
attendingmedicalofficer[326] = "DR. LOO";
attendingmedicalofficer[327] = "DR. MACINDOE";
attendingmedicalofficer[328] = "DR. MCKENZIE";
attendingmedicalofficer[329] = "DR. REGAN";
attendingmedicalofficer[330] = "DR. SRIVASTAVA";
attendingmedicalofficer[331] = "DR. THEOCHAROUS";
attendingmedicalofficer[332] = "DR. THOMAS";
attendingmedicalofficer[333] = "DR. YEOH";
attendingmedicalofficer[334] = "DR/CD";
attendingmedicalofficer[335] = "DR/I";
attendingmedicalofficer[336] = "DR/MT";
attendingmedicalofficer[337] = "DR/PS";
attendingmedicalofficer[338] = "DREEVES";
attendingmedicalofficer[339] = "DREEVES MKR";
attendingmedicalofficer[340] = "DREEVES.";
attendingmedicalofficer[341] = "DREEVES/MKR";
attendingmedicalofficer[342] = "DREEVES/PS";
attendingmedicalofficer[343] = "DRENDERGAST, Ma";
attendingmedicalofficer[344] = "DRK";
attendingmedicalofficer[345] = "DRREVES";
attendingmedicalofficer[346] = "DRT";
attendingmedicalofficer[347] = "DS";
attendingmedicalofficer[348] = "DS CD";
attendingmedicalofficer[349] = "DS CL";
attendingmedicalofficer[350] = "DS MKR";
attendingmedicalofficer[351] = "DS PS";
attendingmedicalofficer[352] = "DS/CD";
attendingmedicalofficer[353] = "DS/NP";
attendingmedicalofficer[354] = "DS/PS";
attendingmedicalofficer[355] = "DSD";
attendingmedicalofficer[356] = "DSM";
attendingmedicalofficer[357] = "DSV";
attendingmedicalofficer[358] = "DU";
attendingmedicalofficer[359] = "DWV";
attendingmedicalofficer[360] = "EB";
attendingmedicalofficer[361] = "EBM";
attendingmedicalofficer[362] = "EC";
attendingmedicalofficer[363] = "EGB";
attendingmedicalofficer[364] = "EGM";
attendingmedicalofficer[365] = "EH";
attendingmedicalofficer[366] = "EJH";
attendingmedicalofficer[367] = "ELLIOTT, Peter";
attendingmedicalofficer[368] = "EM";
attendingmedicalofficer[369] = "EMB";
attendingmedicalofficer[370] = "EMG";
attendingmedicalofficer[371] = "EV";
attendingmedicalofficer[372] = "F";
attendingmedicalofficer[373] = "FMV";
attendingmedicalofficer[374] = "FS";
attendingmedicalofficer[375] = "FZ";
attendingmedicalofficer[376] = "FZ/MFS";
attendingmedicalofficer[377] = "FZ/WV";
attendingmedicalofficer[378] = "GATENBY, Andrew";
attendingmedicalofficer[379] = "GH";
attendingmedicalofficer[380] = "GOLDRICK, A";
attendingmedicalofficer[381] = "GP";
attendingmedicalofficer[382] = "GR";
attendingmedicalofficer[383] = "H";
attendingmedicalofficer[384] = "HARVEY, MICHAEL";
attendingmedicalofficer[385] = "HI";
attendingmedicalofficer[386] = "HUYNH";
attendingmedicalofficer[387] = "IBRAHIM";
attendingmedicalofficer[388] = "ID";
attendingmedicalofficer[389] = "IK";
attendingmedicalofficer[390] = "IK`";
attendingmedicalofficer[391] = "IL";
attendingmedicalofficer[392] = "IR";
attendingmedicalofficer[393] = "IRENE";
attendingmedicalofficer[394] = "J";
attendingmedicalofficer[395] = "J16";
attendingmedicalofficer[396] = "JAS";
attendingmedicalofficer[397] = "JH";
attendingmedicalofficer[398] = "JH DM";
attendingmedicalofficer[399] = "JH NP";
attendingmedicalofficer[400] = "JH PI";
attendingmedicalofficer[401] = "JH/";
attendingmedicalofficer[402] = "JH/AE";
attendingmedicalofficer[403] = "JH/DA";
attendingmedicalofficer[404] = "JH/DM";
attendingmedicalofficer[405] = "JH/NP";
attendingmedicalofficer[406] = "JHG";
attendingmedicalofficer[407] = "JHH";
attendingmedicalofficer[408] = "JHM";
attendingmedicalofficer[409] = "JL";
attendingmedicalofficer[410] = "JM";
attendingmedicalofficer[411] = "JN";
attendingmedicalofficer[412] = "JO";
attendingmedicalofficer[413] = "JT";
attendingmedicalofficer[414] = "JV/CD";
attendingmedicalofficer[415] = "JW";
attendingmedicalofficer[416] = "JY";
attendingmedicalofficer[417] = "JY MKR";
attendingmedicalofficer[418] = "JY PI";
attendingmedicalofficer[419] = "JY]";
attendingmedicalofficer[420] = "K";
attendingmedicalofficer[421] = "K T";
attendingmedicalofficer[422] = "KA";
attendingmedicalofficer[423] = "KAK";
attendingmedicalofficer[424] = "KAKA";
attendingmedicalofficer[425] = "KEN";
attendingmedicalofficer[426] = "KENCH";
attendingmedicalofficer[427] = "KET";
attendingmedicalofficer[428] = "KMR";
attendingmedicalofficer[429] = "KOURTESIS, G.J.";
attendingmedicalofficer[430] = "KT";
attendingmedicalofficer[431] = "KT/CD";
attendingmedicalofficer[432] = "KT/MY";
attendingmedicalofficer[433] = "KTM";
attendingmedicalofficer[434] = "KUBE";
attendingmedicalofficer[435] = "KW";
attendingmedicalofficer[436] = "KW JH";
attendingmedicalofficer[437] = "KW/AKE";
attendingmedicalofficer[438] = "KW/DM";
attendingmedicalofficer[439] = "KY";
attendingmedicalofficer[440] = "L";
attendingmedicalofficer[441] = "LD";
attendingmedicalofficer[442] = "LEON";
attendingmedicalofficer[443] = "LEVY, DR";
attendingmedicalofficer[444] = "LIM, DR";
attendingmedicalofficer[445] = "LLS";
attendingmedicalofficer[446] = "LM";
attendingmedicalofficer[447] = "LN";
attendingmedicalofficer[448] = "LP";
attendingmedicalofficer[449] = "LP/";
attendingmedicalofficer[450] = "LS";
attendingmedicalofficer[451] = "LS/AKA";
attendingmedicalofficer[452] = "LS/AKE";
attendingmedicalofficer[453] = "LS/DA";
attendingmedicalofficer[454] = "LS/DM";
attendingmedicalofficer[455] = "LSD";
attendingmedicalofficer[456] = "LSL";
attendingmedicalofficer[457] = "LSO";
attendingmedicalofficer[458] = "LSRIOP";
attendingmedicalofficer[459] = "LT";
attendingmedicalofficer[460] = "LV";
attendingmedicalofficer[461] = "M";
attendingmedicalofficer[462] = "M K";
attendingmedicalofficer[463] = "M KR";
attendingmedicalofficer[464] = "M SANAEI";
attendingmedicalofficer[465] = "M T";
attendingmedicalofficer[466] = "M,KR";
attendingmedicalofficer[467] = "M,T";
attendingmedicalofficer[468] = "M79320";
attendingmedicalofficer[469] = "MAD";
attendingmedicalofficer[470] = "MADHU";
attendingmedicalofficer[471] = "MADHU RAO";
attendingmedicalofficer[472] = "MADHU/";
attendingmedicalofficer[473] = "MB";
attendingmedicalofficer[474] = "MC";
attendingmedicalofficer[475] = "MCC";
attendingmedicalofficer[476] = "MCCAFFREY, Dr.";
attendingmedicalofficer[477] = "MD";
attendingmedicalofficer[478] = "MDFS";
attendingmedicalofficer[479] = "MDS";
attendingmedicalofficer[480] = "ME";
attendingmedicalofficer[481] = "MED SUPERINTEND";
attendingmedicalofficer[482] = "MEDICAL RECORDS";
attendingmedicalofficer[483] = "MER";
attendingmedicalofficer[484] = "MF";
attendingmedicalofficer[485] = "MF.";
attendingmedicalofficer[486] = "MF/S";
attendingmedicalofficer[487] = "MFA";
attendingmedicalofficer[488] = "MFD";
attendingmedicalofficer[489] = "MFDS";
attendingmedicalofficer[490] = "MFS";
attendingmedicalofficer[491] = "MFS           D";
attendingmedicalofficer[492] = "MFS/CD";
attendingmedicalofficer[493] = "MFS/CL";
attendingmedicalofficer[494] = "MFS/MKR";
attendingmedicalofficer[495] = "MFS/MT";
attendingmedicalofficer[496] = "MFS/WV";
attendingmedicalofficer[497] = "MFSH";
attendingmedicalofficer[498] = "MFSM";
attendingmedicalofficer[499] = "MFSS";
attendingmedicalofficer[500] = "MG";
attendingmedicalofficer[501] = "MHR";
attendingmedicalofficer[502] = "MICHAEL";
attendingmedicalofficer[503] = "MICHAEL S";
attendingmedicalofficer[504] = "MIKR";
attendingmedicalofficer[505] = "MILNER";
attendingmedicalofficer[506] = "MIN";
attendingmedicalofficer[507] = "MJ";
attendingmedicalofficer[508] = "MJM";
attendingmedicalofficer[509] = "MJS";
attendingmedicalofficer[510] = "MK";
attendingmedicalofficer[511] = "MK CD";
attendingmedicalofficer[512] = "MK CL";
attendingmedicalofficer[513] = "MK R";
attendingmedicalofficer[514] = "MK/VS";
attendingmedicalofficer[515] = "MKC";
attendingmedicalofficer[516] = "MKD";
attendingmedicalofficer[517] = "MKE";
attendingmedicalofficer[518] = "MKF";
attendingmedicalofficer[519] = "MKKR";
attendingmedicalofficer[520] = "MKLR";
attendingmedicalofficer[521] = "MKR";
attendingmedicalofficer[522] = "MKR  CD";
attendingmedicalofficer[523] = "MKR  PS";
attendingmedicalofficer[524] = "MKR / JH";
attendingmedicalofficer[525] = "MKR /NP";
attendingmedicalofficer[526] = "MKR AA";
attendingmedicalofficer[527] = "MKR CD";
attendingmedicalofficer[528] = "MKR CL";
attendingmedicalofficer[529] = "MKR DR";
attendingmedicalofficer[530] = "MKR DREEVES";
attendingmedicalofficer[531] = "MKR DS";
attendingmedicalofficer[532] = "MKR MT";
attendingmedicalofficer[533] = "MKR NP";
attendingmedicalofficer[534] = "MKR PI";
attendingmedicalofficer[535] = "MKR PS";
attendingmedicalofficer[536] = "MKR WV";
attendingmedicalofficer[537] = "MKR'";
attendingmedicalofficer[538] = "MKR, MT";
attendingmedicalofficer[539] = "MKR/";
attendingmedicalofficer[540] = "MKR/AA";
attendingmedicalofficer[541] = "MKR/BP";
attendingmedicalofficer[542] = "MKR/CD";
attendingmedicalofficer[543] = "MKR/DA";
attendingmedicalofficer[544] = "MKR/DI";
attendingmedicalofficer[545] = "MKR/DS";
attendingmedicalofficer[546] = "MKR/JH";
attendingmedicalofficer[547] = "MKR/MT";
attendingmedicalofficer[548] = "MKR/MT/CD";
attendingmedicalofficer[549] = "MKR/NP";
attendingmedicalofficer[550] = "MKR/PS";
attendingmedicalofficer[551] = "MKR/SJ";
attendingmedicalofficer[552] = "MKR1";
attendingmedicalofficer[553] = "MKRE";
attendingmedicalofficer[554] = "MKRH";
attendingmedicalofficer[555] = "MKRM";
attendingmedicalofficer[556] = "MKRR";
attendingmedicalofficer[557] = "MKRT";
attendingmedicalofficer[558] = "MKS";
attendingmedicalofficer[559] = "MKS/CD";
attendingmedicalofficer[560] = "MKT";
attendingmedicalofficer[561] = "MLR";
attendingmedicalofficer[562] = "MN";
attendingmedicalofficer[563] = "MNKR";
attendingmedicalofficer[564] = "MOONT, MICHAEL";
attendingmedicalofficer[565] = "MORGAN";
attendingmedicalofficer[566] = "MP";
attendingmedicalofficer[567] = "MR";
attendingmedicalofficer[568] = "MR CD";
attendingmedicalofficer[569] = "MR.";
attendingmedicalofficer[570] = "MR./WV";
attendingmedicalofficer[571] = "MRAO";
attendingmedicalofficer[572] = "MRAO9";
attendingmedicalofficer[573] = "MRAP";
attendingmedicalofficer[574] = "MRC";
attendingmedicalofficer[575] = "MRD";
attendingmedicalofficer[576] = "MRK";
attendingmedicalofficer[577] = "MRK DR";
attendingmedicalofficer[578] = "MRK PS";
attendingmedicalofficer[579] = "MROA";
attendingmedicalofficer[580] = "MRS";
attendingmedicalofficer[581] = "MS";
attendingmedicalofficer[582] = "MS.";
attendingmedicalofficer[583] = "MS/CD";
attendingmedicalofficer[584] = "MS/MT";
attendingmedicalofficer[585] = "MS/MY";
attendingmedicalofficer[586] = "MSF";
attendingmedicalofficer[587] = "MSH";
attendingmedicalofficer[588] = "MT";
attendingmedicalofficer[589] = "MT CD";
attendingmedicalofficer[590] = "MT DR";
attendingmedicalofficer[591] = "MT MKR";
attendingmedicalofficer[592] = "MT PS";
attendingmedicalofficer[593] = "MT WV";
attendingmedicalofficer[594] = "MT'";
attendingmedicalofficer[595] = "MT.";
attendingmedicalofficer[596] = "MT.Y";
attendingmedicalofficer[597] = "MT/AN";
attendingmedicalofficer[598] = "MT/BP";
attendingmedicalofficer[599] = "MT/CD";
attendingmedicalofficer[600] = "MT/CL";
attendingmedicalofficer[601] = "MT/DR";
attendingmedicalofficer[602] = "MT/LN";
attendingmedicalofficer[603] = "MT/MFS";
attendingmedicalofficer[604] = "MT/MKR";
attendingmedicalofficer[605] = "MT/MY";
attendingmedicalofficer[606] = "MT/SJ";
attendingmedicalofficer[607] = "MT/WV";
attendingmedicalofficer[608] = "MTD";
attendingmedicalofficer[609] = "MTH";
attendingmedicalofficer[610] = "MTM";
attendingmedicalofficer[611] = "MV";
attendingmedicalofficer[612] = "MWV";
attendingmedicalofficer[613] = "MX";
attendingmedicalofficer[614] = "MY";
attendingmedicalofficer[615] = "MY/KT";
attendingmedicalofficer[616] = "MY/WV";
attendingmedicalofficer[617] = "MY7";
attendingmedicalofficer[618] = "MYT";
attendingmedicalofficer[619] = "MYU";
attendingmedicalofficer[620] = "MYYU";
attendingmedicalofficer[621] = "MY`";
attendingmedicalofficer[622] = "N";
attendingmedicalofficer[623] = "NHP";
attendingmedicalofficer[624] = "NIL PROVIDED, .";
attendingmedicalofficer[625] = "NJR";
attendingmedicalofficer[626] = "NKR";
attendingmedicalofficer[627] = "NMP";
attendingmedicalofficer[628] = "NN";
attendingmedicalofficer[629] = "NO";
attendingmedicalofficer[630] = "NP";
attendingmedicalofficer[631] = "NP CD";
attendingmedicalofficer[632] = "NP DA";
attendingmedicalofficer[633] = "NP JH";
attendingmedicalofficer[634] = "NP MKR";
attendingmedicalofficer[635] = "NP PS";
attendingmedicalofficer[636] = "NP-DM";
attendingmedicalofficer[637] = "NP/";
attendingmedicalofficer[638] = "NP/AK";
attendingmedicalofficer[639] = "NP/CD";
attendingmedicalofficer[640] = "NP/DG";
attendingmedicalofficer[641] = "NP/DM";
attendingmedicalofficer[642] = "NP/JH";
attendingmedicalofficer[643] = "NP/PI";
attendingmedicalofficer[644] = "NPCD";
attendingmedicalofficer[645] = "NPD";
attendingmedicalofficer[646] = "NPH";
attendingmedicalofficer[647] = "NPI";
attendingmedicalofficer[648] = "NPO";
attendingmedicalofficer[649] = "NPO PS";
attendingmedicalofficer[650] = "NPR";
attendingmedicalofficer[651] = "NP[";
attendingmedicalofficer[652] = "NT";
attendingmedicalofficer[653] = "N[P";
attendingmedicalofficer[654] = "O'SULLIVAN";
attendingmedicalofficer[655] = "OK";
attendingmedicalofficer[656] = "OKEY, DR";
attendingmedicalofficer[657] = "OP19";
attendingmedicalofficer[658] = "OP63";
attendingmedicalofficer[659] = "OS";
attendingmedicalofficer[660] = "P";
attendingmedicalofficer[661] = "P1";
attendingmedicalofficer[662] = "P;S";
attendingmedicalofficer[663] = "PA";
attendingmedicalofficer[664] = "PAT";
attendingmedicalofficer[665] = "PC";
attendingmedicalofficer[666] = "PC CD";
attendingmedicalofficer[667] = "PD";
attendingmedicalofficer[668] = "PDS";
attendingmedicalofficer[669] = "PERIOP";
attendingmedicalofficer[670] = "PI";
attendingmedicalofficer[671] = "PI /CD";
attendingmedicalofficer[672] = "PI CL";
attendingmedicalofficer[673] = "PI DA";
attendingmedicalofficer[674] = "PI NP";
attendingmedicalofficer[675] = "PI/";
attendingmedicalofficer[676] = "PI/CC";
attendingmedicalofficer[677] = "PI/CL";
attendingmedicalofficer[678] = "PID";
attendingmedicalofficer[679] = "PIDCOCK, M";
attendingmedicalofficer[680] = "PIO";
attendingmedicalofficer[681] = "PM";
attendingmedicalofficer[682] = "PM/LS";
attendingmedicalofficer[683] = "POC";
attendingmedicalofficer[684] = "POS";
attendingmedicalofficer[685] = "PR";
attendingmedicalofficer[686] = "PRASAD";
attendingmedicalofficer[687] = "PRENDERGAST, M";
attendingmedicalofficer[688] = "PRK";
attendingmedicalofficer[689] = "PROF DAVIES";
attendingmedicalofficer[690] = "PROF. DAVIES";
attendingmedicalofficer[691] = "PS";
attendingmedicalofficer[692] = "PS /REG";
attendingmedicalofficer[693] = "PS AA";
attendingmedicalofficer[694] = "PS CD";
attendingmedicalofficer[695] = "PS CL";
attendingmedicalofficer[696] = "PS DR";
attendingmedicalofficer[697] = "PS MKR";
attendingmedicalofficer[698] = "PS MKR CL";
attendingmedicalofficer[699] = "PS MT";
attendingmedicalofficer[700] = "PS NP";
attendingmedicalofficer[701] = "PS/";
attendingmedicalofficer[702] = "PS/AA";
attendingmedicalofficer[703] = "PS/CD";
attendingmedicalofficer[704] = "PS/DR";
attendingmedicalofficer[705] = "PS/DS";
attendingmedicalofficer[706] = "PS/MKR";
attendingmedicalofficer[707] = "PS/NP";
attendingmedicalofficer[708] = "PS00";
attendingmedicalofficer[709] = "PSD";
attendingmedicalofficer[710] = "PSK";
attendingmedicalofficer[711] = "PSM";
attendingmedicalofficer[712] = "PSY";
attendingmedicalofficer[713] = "P[";
attendingmedicalofficer[714] = "Q";
attendingmedicalofficer[715] = "QKE";
attendingmedicalofficer[716] = "QWV";
attendingmedicalofficer[717] = "R";
attendingmedicalofficer[718] = "RAB";
attendingmedicalofficer[719] = "RAE, Robert";
attendingmedicalofficer[720] = "RANI";
attendingmedicalofficer[721] = "RAO, Sukhakar";
attendingmedicalofficer[722] = "RAS";
attendingmedicalofficer[723] = "RB";
attendingmedicalofficer[724] = "RC";
attendingmedicalofficer[725] = "RD";
attendingmedicalofficer[726] = "RE";
attendingmedicalofficer[727] = "REGAN";
attendingmedicalofficer[728] = "RF";
attendingmedicalofficer[729] = "RJ";
attendingmedicalofficer[730] = "RKM";
attendingmedicalofficer[731] = "RM";
attendingmedicalofficer[732] = "ROMEO";
attendingmedicalofficer[733] = "ROSENFELD, D";
attendingmedicalofficer[734] = "RP";
attendingmedicalofficer[735] = "SA";
attendingmedicalofficer[736] = "SCD";
attendingmedicalofficer[737] = "SCU";
attendingmedicalofficer[738] = "SD";
attendingmedicalofficer[739] = "SE";
attendingmedicalofficer[740] = "SF";
attendingmedicalofficer[741] = "SGB";
attendingmedicalofficer[742] = "SHAREEN";
attendingmedicalofficer[743] = "SJ";
attendingmedicalofficer[744] = "SJ/CL";
attendingmedicalofficer[745] = "SJ/WV";
attendingmedicalofficer[746] = "SJM";
attendingmedicalofficer[747] = "SK";
attendingmedicalofficer[748] = "SL";
attendingmedicalofficer[749] = "SM";
attendingmedicalofficer[750] = "SMFS";
attendingmedicalofficer[751] = "SMI";
attendingmedicalofficer[752] = "SMI.";
attendingmedicalofficer[753] = "SMITH";
attendingmedicalofficer[754] = "SMITH, Mitchell";
attendingmedicalofficer[755] = "SMJ";
attendingmedicalofficer[756] = "SMKR";
attendingmedicalofficer[757] = "SN";
attendingmedicalofficer[758] = "SN & MFS";
attendingmedicalofficer[759] = "SN.";
attendingmedicalofficer[760] = "SOUTHAN";
attendingmedicalofficer[761] = "SR";
attendingmedicalofficer[762] = "SRIVASTAVA";
attendingmedicalofficer[763] = "SS";
attendingmedicalofficer[764] = "SSJ";
attendingmedicalofficer[765] = "SSK";
attendingmedicalofficer[766] = "SSSS";
attendingmedicalofficer[767] = "SSV";
attendingmedicalofficer[768] = "STENING, Frank";
attendingmedicalofficer[769] = "STEPHENSON, J B";
attendingmedicalofficer[770] = "STEVE";
attendingmedicalofficer[771] = "STEVENSON, D.";
attendingmedicalofficer[772] = "SV";
attendingmedicalofficer[773] = "SV PS";
attendingmedicalofficer[774] = "SV]";
attendingmedicalofficer[775] = "SZ";
attendingmedicalofficer[776] = "T";
attendingmedicalofficer[777] = "TA";
attendingmedicalofficer[778] = "TANG";
attendingmedicalofficer[779] = "TBP";
attendingmedicalofficer[780] = "TC";
attendingmedicalofficer[781] = "TE";
attendingmedicalofficer[782] = "TE/CD";
attendingmedicalofficer[783] = "TEOH";
attendingmedicalofficer[784] = "TET";
attendingmedicalofficer[785] = "TMT";
attendingmedicalofficer[786] = "TN";
attendingmedicalofficer[787] = "TO";
attendingmedicalofficer[788] = "TONG";
attendingmedicalofficer[789] = "TP";
attendingmedicalofficer[790] = "TUCKER, R";
attendingmedicalofficer[791] = "VF";
attendingmedicalofficer[792] = "VK";
attendingmedicalofficer[793] = "VO";
attendingmedicalofficer[794] = "VO/AKE";
attendingmedicalofficer[795] = "VO/RB";
attendingmedicalofficer[796] = "VS";
attendingmedicalofficer[797] = "VW";
attendingmedicalofficer[798] = "W";
attendingmedicalofficer[799] = "WB";
attendingmedicalofficer[800] = "WC";
attendingmedicalofficer[801] = "WD";
attendingmedicalofficer[802] = "WD WV";
attendingmedicalofficer[803] = "WEV";
attendingmedicalofficer[804] = "WJ";
attendingmedicalofficer[805] = "WM";
attendingmedicalofficer[806] = "WT";
attendingmedicalofficer[807] = "WV";
attendingmedicalofficer[808] = "WV / MT";
attendingmedicalofficer[809] = "WV AA";
attendingmedicalofficer[810] = "WV CD";
attendingmedicalofficer[811] = "WV MFS";
attendingmedicalofficer[812] = "WV MT";
attendingmedicalofficer[813] = "WV PS";
attendingmedicalofficer[814] = "WV.";
attendingmedicalofficer[815] = "WV/BP";
attendingmedicalofficer[816] = "WV/CD";
attendingmedicalofficer[817] = "WV/CL";
attendingmedicalofficer[818] = "WV/DR";
attendingmedicalofficer[819] = "WV/MFS";
attendingmedicalofficer[820] = "WV/MKR";
attendingmedicalofficer[821] = "WV/MT";
attendingmedicalofficer[822] = "WV/MY";
attendingmedicalofficer[823] = "WVB";
attendingmedicalofficer[824] = "WVC";
attendingmedicalofficer[825] = "WVJ16";
attendingmedicalofficer[826] = "WV`";
attendingmedicalofficer[827] = "WY";
attendingmedicalofficer[828] = "XCD";
attendingmedicalofficer[829] = "Y";
attendingmedicalofficer[830] = "YT";
attendingmedicalofficer[831] = "ZF";
attendingmedicalofficer[832] = "[S";
attendingmedicalofficer[833] = "`";
attendingmedicalofficer[834] = "`MKR";
attendingmedicalofficer[835] = "`MY";
				var sitecode = new Array();
sitecode[0] = "BH";
sitecode[1] = "CY";
sitecode[2] = "EM";
sitecode[3] = "HI";
sitecode[4] = "LI";
sitecode[5] = "PM";
				var reporttypistcode = new Array();
reporttypistcode[0] = "A3";
reporttypistcode[1] = "AK";
reporttypistcode[2] = "BE";
reporttypistcode[3] = "CB";
reporttypistcode[4] = "CL";
reporttypistcode[5] = "DD";
reporttypistcode[6] = "DG";
reporttypistcode[7] = "DG.";
reporttypistcode[8] = "DUSM";
reporttypistcode[9] = "HM";
reporttypistcode[10] = "HO";
reporttypistcode[11] = "JP";
reporttypistcode[12] = "JS";
reporttypistcode[13] = "JV";
reporttypistcode[14] = "JY";
reporttypistcode[15] = "KMS";
reporttypistcode[16] = "KS";
reporttypistcode[17] = "LM";
reporttypistcode[18] = "LVA1";
reporttypistcode[19] = "LVA3";
reporttypistcode[20] = "LVA7";
reporttypistcode[21] = "LVA9";
reporttypistcode[22] = "LVM5";
reporttypistcode[23] = "MB";
reporttypistcode[24] = "SE";
reporttypistcode[25] = "SJ";
reporttypistcode[26] = "SP";
reporttypistcode[27] = "SS";
reporttypistcode[28] = "TA";
reporttypistcode[29] = "TEC";
reporttypistcode[30] = "TT";
reporttypistcode[31] = "TYP";
reporttypistcode[32] = "XW";
				var specimentype = new Array();
specimentype[0] = "Additional report";
specimentype[1] = "Adrenal";
specimentype[2] = "Amended Re";
specimentype[3] = "Amended Report";
specimentype[4] = "Ammended R";
specimentype[5] = "Anal biopsy";
specimentype[6] = "Anal Polyp";
specimentype[7] = "Antral & Duoden. Bxs";
specimentype[8] = "Antral & Gastric Bxs";
specimentype[9] = "Antral Bio";
specimentype[10] = "Antral Biopsy";
specimentype[11] = "Anus";
specimentype[12] = "Appendix";
specimentype[13] = "Appendix and Colon";
specimentype[14] = "Artery";
specimentype[15] = "Ascites";
specimentype[16] = "Axillary dissection";
specimentype[17] = "Biopsy of";
specimentype[18] = "Biopsy of Cervix";
specimentype[19] = "Biopsy of Pancreas";
specimentype[20] = "Bladder";
specimentype[21] = "Bladder Wa";
specimentype[22] = "Bladder Washings";
specimentype[23] = "Bone";
specimentype[24] = "Bone Marrohine";
specimentype[25] = "Bone Marrow Aspirat.";
specimentype[26] = "Bone Marrow Treph.";
specimentype[27] = "Brain Biopsy";
specimentype[28] = "Breast";
specimentype[29] = "Breast Bio";
specimentype[30] = "Breast Biopsy";
specimentype[31] = "Bronch-Alveol Lavage";
specimentype[32] = "Bronch-Alvvage";
specimentype[33] = "Bronchial";
specimentype[34] = "Bronchial Biopsy";
specimentype[35] = "Bronchial Brushing";
specimentype[36] = "Bronchial g";
specimentype[37] = "Bronchial ng";
specimentype[38] = "Bronchial Washing";
specimentype[39] = "Broncho-Al Lav";
specimentype[40] = "Caecum";
specimentype[41] = "CAROTID ARTERY";
specimentype[42] = "carotid plaque";
specimentype[43] = "Case for R";
specimentype[44] = "Case for Review";
specimentype[45] = "CAUTION: WRONG ID";
specimentype[46] = "Cerebrospinal Fluid";
specimentype[47] = "Cerebrospiuid";
specimentype[48] = "CERVICAL POLYP";
specimentype[49] = "Chor. Villi Sampling";
specimentype[50] = "Chromosome Studies";
specimentype[51] = "Colon";
specimentype[52] = "Colon and";
specimentype[53] = "Colon and Caecum";
specimentype[54] = "COLON AND RECTUM";
specimentype[55] = "Colon. & Rect.Polyps";
specimentype[56] = "Colonic &  Bxs";
specimentype[57] = "Colonic & Rectal Bxs";
specimentype[58] = "Colonic anal B";
specimentype[59] = "Colonic Bi";
specimentype[60] = "Colonic Biopsy";
specimentype[61] = "Colonic Po";
specimentype[62] = "Colonic Polyp";
specimentype[63] = "Cone Bx of Cervix";
specimentype[64] = "Cone Bx ofx";
specimentype[65] = "Consultati";
specimentype[66] = "Consultation";
specimentype[67] = "COPPER ESTIMATION";
specimentype[68] = "Cornea";
specimentype[69] = "Cyst";
specimentype[70] = "Cyst Fluid";
specimentype[71] = "Cytology";
specimentype[72] = "Cytology skin etc sm";
specimentype[73] = "Disaccharidase Level";
specimentype[74] = "Disaccharievel";
specimentype[75] = "Duodenal B";
specimentype[76] = "Duodenal Bgs";
specimentype[77] = "Duodenal Biopsy";
specimentype[78] = "Duodenal Brushings";
specimentype[79] = "Epididymis";
specimentype[80] = "Ethmoid";
specimentype[81] = "Eye";
specimentype[82] = "Fallopian";
specimentype[83] = "Fallopian Tube";
specimentype[84] = "Femoral He";
specimentype[85] = "Femoral Head";
specimentype[86] = "Fine Needl Bx";
specimentype[87] = "Fine Needle Asp. Bx";
specimentype[88] = "Fine Needlrati";
specimentype[89] = "FNAB of Br";
specimentype[90] = "FNAB of Breast";
specimentype[91] = "FNAB of Ki";
specimentype[92] = "FNAB of Kidney";
specimentype[93] = "FNAB of Li";
specimentype[94] = "FNAB of Liver";
specimentype[95] = "FNAB of Lu";
specimentype[96] = "FNAB of Lung";
specimentype[97] = "FNAB of No";
specimentype[98] = "FNAB of Node";
specimentype[99] = "FNAB of Pa";
specimentype[100] = "FNAB of Pancreas";
specimentype[101] = "FNAB of Th";
specimentype[102] = "FNAB of Thyroid";
specimentype[103] = "Foetus";
specimentype[104] = "Gall Bl. & Liver Bx";
specimentype[105] = "Gall Bladd";
specimentype[106] = "Gallbladde";
specimentype[107] = "Gallbladder";
specimentype[108] = "Ganglion";
specimentype[109] = "Gastric & . Bx";
specimentype[110] = "Gastric & Duod. Bxs";
specimentype[111] = "Gastric & Oesoph. Bx";
specimentype[112] = "GASTRIC AND COLONIC";
specimentype[113] = "Gastric anenal";
specimentype[114] = "Gastric anphag";
specimentype[115] = "Gastric antrum";
specimentype[116] = "Gastric Bi";
specimentype[117] = "Gastric Biopsy";
specimentype[118] = "Gastric Brs";
specimentype[119] = "Gastric Brushings";
specimentype[120] = "GASTRIC POLYP";
specimentype[121] = "Gastric/colonic biop";
specimentype[122] = "Gum or oral mucosa";
specimentype[123] = "Haemorrhoid";
specimentype[124] = "Heart Valve";
specimentype[125] = "Histology";
specimentype[126] = "Hydatid of Morgagni";
specimentype[127] = "Ileum";
specimentype[128] = "Ileum and";
specimentype[129] = "Ileum and Caecum";
specimentype[130] = "Iron Studies";
specimentype[131] = "JOINT FLUID";
specimentype[132] = "Kidney";
specimentype[133] = "Laryngeal";
specimentype[134] = "Laryngeal Biopsy";
specimentype[135] = "LARYNGEAL G";
specimentype[136] = "Larynx";
specimentype[137] = "lip";
specimentype[138] = "Lipoma";
specimentype[139] = "Liver Biop";
specimentype[140] = "Liver Biopsy";
specimentype[141] = "Lung";
specimentype[142] = "Lymph Node";
specimentype[143] = "Meckel's diverticul.";
specimentype[144] = "Multiple BSpec";
specimentype[145] = "Multiple Bx Spec.s";
specimentype[146] = "Muscle Bio";
specimentype[147] = "Muscle Biopsy";
specimentype[148] = "Nasal Poly";
specimentype[149] = "Nasal Polyp";
specimentype[150] = "NASAL SINUSES";
specimentype[151] = "Nasopharynx";
specimentype[152] = "NECK DISSECTION";
specimentype[153] = "NERVE";
specimentype[154] = "Nerve Biopsy";
specimentype[155] = "NOTE: SUPE REP";
specimentype[156] = "Oesophag. Brushings";
specimentype[157] = "Oesophag. ngs";
specimentype[158] = "Oesophageahing";
specimentype[159] = "Oesophageal Biopsy";
specimentype[160] = "Oesophageasy";
specimentype[161] = "Oestrogen ors";
specimentype[162] = "Oestrogen Receptors";
specimentype[163] = "Omentum";
specimentype[164] = "Oral Smear";
specimentype[165] = "Ovarian cy";
specimentype[166] = "Ovarian cyst";
specimentype[167] = "Ovary";
specimentype[168] = "Ovary and";
specimentype[169] = "Ovary and tube";
specimentype[170] = "PAP Smear";
specimentype[171] = "Parathyroid";
specimentype[172] = "PAROTID GLAND";
specimentype[173] = "Pericardiad";
specimentype[174] = "Pericardial Fluid";
specimentype[175] = "Perinatal Post Morte";
specimentype[176] = "Peritoneal";
specimentype[177] = "Peritoneal Biopsy";
specimentype[178] = "Peritoneal Fluid";
specimentype[179] = "Pilonidal Sinus";
specimentype[180] = "Placenta";
specimentype[181] = "Placenta and Foetus";
specimentype[182] = "Pleural bi";
specimentype[183] = "Pleural biopsy";
specimentype[184] = "Pleural Fl";
specimentype[185] = "Pleural Fluid";
specimentype[186] = "Post Mortein.";
specimentype[187] = "Post Morteinat";
specimentype[188] = "Post Mortem Examin.";
specimentype[189] = "Pouch of D Fl.";
specimentype[190] = "Pouch of D Flu";
specimentype[191] = "Pouch of Douglas Fl.";
specimentype[192] = "Products oept.";
specimentype[193] = "Products oepti";
specimentype[194] = "Products of Concept.";
specimentype[195] = "Prostate";
specimentype[196] = "Prostate B";
specimentype[197] = "Prostate Biopsy";
specimentype[198] = "Prostate Chips";
specimentype[199] = "R.C.P.A. Q Ass";
specimentype[200] = "RCPA QA PrCyto";
specimentype[201] = "RCPA QA PrHist";
specimentype[202] = "RCPA QA Program-Cyto";
specimentype[203] = "RCPA QA Program-Hist";
specimentype[204] = "Rectal Bio";
specimentype[205] = "Rectal Biopsy";
specimentype[206] = "Rectal Pol";
specimentype[207] = "Rectal Polyp";
specimentype[208] = "Rectum";
specimentype[209] = "Renal Biop";
specimentype[210] = "Renal Biopsy";
specimentype[211] = "Salivary G";
specimentype[212] = "Salivary Gland";
specimentype[213] = "Semen Anal.-Post Vas";
specimentype[214] = "Semen Analysis";
specimentype[215] = "Skin Biops";
specimentype[216] = "Skin Biopsy";
specimentype[217] = "Small Bowel";
specimentype[218] = "Small Bowel Biopsy";
specimentype[219] = "Small Bowesy";
specimentype[220] = "Soft tissue";
specimentype[221] = "Specimen preauricula";
specimentype[222] = "Specimen synovial bi";
specimentype[223] = "Specimens tipl";
specimentype[224] = "Specs. Multiple Type";
specimentype[225] = "Spleen";
specimentype[226] = "Spleen and Pancreas";
specimentype[227] = "Sputum";
specimentype[228] = "Stomach";
specimentype[229] = "Stomach and spleen";
specimentype[230] = "Superseded Report";
specimentype[231] = "Supplementary Report";
specimentype[232] = "Supplementport";
specimentype[233] = "Synovial biopsy";
specimentype[234] = "Temporal ABx";
specimentype[235] = "Temporal Artery";
specimentype[236] = "Temporal Artery Bx";
specimentype[237] = "Testis";
specimentype[238] = "Thyroglossal duct";
specimentype[239] = "Thyroid";
specimentype[240] = "Tissue Audit only";
specimentype[241] = "Tongue";
specimentype[242] = "TONSIL";
specimentype[243] = "Transbronchial Bx";
specimentype[244] = "Ureter";
specimentype[245] = "Ureteric U";
specimentype[246] = "Ureteric Urine";
specimentype[247] = "Urine";
specimentype[248] = "Ut curette + Cerv Bx";
specimentype[249] = "Uterine Cue an";
specimentype[250] = "Uterine Cugs";
specimentype[251] = "Uterine Curettings";
specimentype[252] = "uterine fibroid";
specimentype[253] = "Uterus";
specimentype[254] = "Uterus, Tu Ova";
specimentype[255] = "Uterus, Tube & Ovary";
specimentype[256] = "Vaginal biopsy";
specimentype[257] = "Vaginal Vaear";
specimentype[258] = "Vaginal Vault Smear";
specimentype[259] = "Vaginal Waar";
specimentype[260] = "Vaginal Wall Smear";
specimentype[261] = "Vas Defere";
specimentype[262] = "Vas Deferens";
specimentype[263] = "Vocal Cord";
specimentype[264] = "Vulva";
				var techniciancode = new Array();
techniciancode[0] = "SCAF";
techniciancode[1] = "SFNN";
techniciancode[2] = "SFNT";
				var status = new Array();
status[0] = "0";
status[1] = "1";
status[2] = "5";
status[3] = "6";
status[4] = "7";
status[5] = "8";
status[6] = "9";
				var departmentcode = new Array();
departmentcode[0] = "AP";
				var wardid = new Array();
wardid[0] = "1";
wardid[1] = "2";
wardid[2] = "3";
wardid[3] = "4";
wardid[4] = "5";
wardid[5] = "6";
wardid[6] = "7";
wardid[7] = "8";
wardid[8] = "9";
wardid[9] = "10";
wardid[10] = "11";
wardid[11] = "12";
wardid[12] = "13";
wardid[13] = "14";
wardid[14] = "15";
wardid[15] = "16";
wardid[16] = "17";
wardid[17] = "18";
wardid[18] = "19";
wardid[19] = "20";
wardid[20] = "21";
wardid[21] = "22";
wardid[22] = "23";
wardid[23] = "24";
wardid[24] = "25";
wardid[25] = "26";
wardid[26] = "27";
wardid[27] = "28";
wardid[28] = "29";
wardid[29] = "30";
wardid[30] = "31";
wardid[31] = "32";
wardid[32] = "33";
wardid[33] = "34";
wardid[34] = "35";
wardid[35] = "36";
wardid[36] = "37";
wardid[37] = "38";
wardid[38] = "39";
wardid[39] = "40";
wardid[40] = "41";
wardid[41] = "42";
wardid[42] = "43";
wardid[43] = "44";
wardid[44] = "45";
wardid[45] = "46";
wardid[46] = "47";
wardid[47] = "48";
wardid[48] = "49";
wardid[49] = "50";
wardid[50] = "51";
wardid[51] = "52";
wardid[52] = "53";
wardid[53] = "54";
wardid[54] = "55";
wardid[55] = "56";
wardid[56] = "57";
wardid[57] = "58";
wardid[58] = "59";
wardid[59] = "60";
wardid[60] = "61";
wardid[61] = "62";
wardid[62] = "63";
wardid[63] = "64";
wardid[64] = "65";
wardid[65] = "66";
wardid[66] = "67";
wardid[67] = "68";
wardid[68] = "69";
wardid[69] = "70";
wardid[70] = "71";
wardid[71] = "72";
wardid[72] = "73";
wardid[73] = "74";
wardid[74] = "75";
wardid[75] = "76";
wardid[76] = "77";
wardid[77] = "78";
wardid[78] = "79";
wardid[79] = "80";
wardid[80] = "81";
wardid[81] = "82";
wardid[82] = "83";
wardid[83] = "84";
wardid[84] = "85";
wardid[85] = "86";
wardid[86] = "87";
wardid[87] = "88";
wardid[88] = "89";
wardid[89] = "90";
wardid[90] = "91";
wardid[91] = "92";
wardid[92] = "93";
wardid[93] = "94";
wardid[94] = "95";
wardid[95] = "96";
wardid[96] = "97";
wardid[97] = "98";
wardid[98] = "99";
wardid[99] = "100";
wardid[100] = "101";
wardid[101] = "102";
wardid[102] = "103";
wardid[103] = "104";
wardid[104] = "105";
wardid[105] = "106";
wardid[106] = "107";
wardid[107] = "108";
wardid[108] = "109";
wardid[109] = "110";
wardid[110] = "111";
wardid[111] = "112";
wardid[112] = "113";
wardid[113] = "114";
wardid[114] = "115";
wardid[115] = "116";
wardid[116] = "117";
wardid[117] = "118";
wardid[118] = "119";
wardid[119] = "120";
wardid[120] = "121";
wardid[121] = "122";
wardid[122] = "123";
wardid[123] = "124";
wardid[124] = "125";
wardid[125] = "126";
wardid[126] = "127";
wardid[127] = "128";
wardid[128] = "129";
wardid[129] = "130";
wardid[130] = "131";
wardid[131] = "132";
wardid[132] = "133";
wardid[133] = "134";
wardid[134] = "135";
wardid[135] = "136";
wardid[136] = "137";
wardid[137] = "138";
wardid[138] = "139";
wardid[139] = "140";
wardid[140] = "141";
wardid[141] = "142";
wardid[142] = "143";
wardid[143] = "144";
wardid[144] = "145";
wardid[145] = "146";
wardid[146] = "147";
wardid[147] = "148";
wardid[148] = "149";
wardid[149] = "150";
wardid[150] = "151";
wardid[151] = "152";
wardid[152] = "153";
wardid[153] = "154";
wardid[154] = "155";
wardid[155] = "156";
wardid[156] = "157";
wardid[157] = "158";
wardid[158] = "159";
wardid[159] = "160";
wardid[160] = "161";
wardid[161] = "162";
wardid[162] = "163";
wardid[163] = "164";
wardid[164] = "165";
wardid[165] = "166";
wardid[166] = "167";
wardid[167] = "168";
wardid[168] = "169";
wardid[169] = "170";
wardid[170] = "171";
wardid[171] = "172";
wardid[172] = "173";
wardid[173] = "174";
wardid[174] = "175";
wardid[175] = "176";
wardid[176] = "177";
wardid[177] = "178";
wardid[178] = "179";
wardid[179] = "180";
wardid[180] = "181";
wardid[181] = "182";
wardid[182] = "183";
wardid[183] = "184";
wardid[184] = "185";
wardid[185] = "186";
wardid[186] = "187";
wardid[187] = "188";
wardid[188] = "189";
wardid[189] = "190";
wardid[190] = "191";
wardid[191] = "192";
wardid[192] = "193";
wardid[193] = "194";
wardid[194] = "195";
wardid[195] = "196";
wardid[196] = "197";
wardid[197] = "198";
wardid[198] = "199";
wardid[199] = "200";
wardid[200] = "201";
wardid[201] = "202";
wardid[202] = "203";
wardid[203] = "204";
wardid[204] = "205";
wardid[205] = "206";
wardid[206] = "207";
wardid[207] = "208";
wardid[208] = "209";
wardid[209] = "210";
wardid[210] = "211";
wardid[211] = "212";
wardid[212] = "213";
wardid[213] = "214";
wardid[214] = "215";
wardid[215] = "216";
wardid[216] = "217";
wardid[217] = "218";
wardid[218] = "219";
wardid[219] = "220";
wardid[220] = "221";
wardid[221] = "222";
wardid[222] = "223";
wardid[223] = "224";
wardid[224] = "225";
wardid[225] = "226";
wardid[226] = "227";
wardid[227] = "228";
wardid[228] = "229";
wardid[229] = "230";
wardid[230] = "231";
wardid[231] = "232";
wardid[232] = "233";
wardid[233] = "234";
wardid[234] = "235";
wardid[235] = "236";
wardid[236] = "237";
wardid[237] = "238";
wardid[238] = "239";
wardid[239] = "240";
wardid[240] = "241";
wardid[241] = "242";
wardid[242] = "243";
wardid[243] = "244";
wardid[244] = "245";
wardid[245] = "246";
wardid[246] = "247";
wardid[247] = "248";
wardid[248] = "249";
wardid[249] = "250";
wardid[250] = "251";
wardid[251] = "252";
wardid[252] = "253";
wardid[253] = "254";
wardid[254] = "255";
wardid[255] = "256";
wardid[256] = "257";
wardid[257] = "258";
wardid[258] = "259";
wardid[259] = "260";
wardid[260] = "261";
wardid[261] = "262";
wardid[262] = "263";
wardid[263] = "264";
wardid[264] = "265";
wardid[265] = "266";
wardid[266] = "267";
wardid[267] = "268";
wardid[268] = "269";
wardid[269] = "270";
wardid[270] = "271";
wardid[271] = "272";
wardid[272] = "273";
wardid[273] = "274";
wardid[274] = "275";
wardid[275] = "276";
wardid[276] = "277";
wardid[277] = "278";
wardid[278] = "279";
wardid[279] = "280";
wardid[280] = "281";
wardid[281] = "282";
wardid[282] = "283";
wardid[283] = "284";
wardid[284] = "285";
wardid[285] = "286";
wardid[286] = "287";
wardid[287] = "288";
wardid[288] = "289";
wardid[289] = "290";
wardid[290] = "291";
wardid[291] = "292";
wardid[292] = "293";
wardid[293] = "294";
wardid[294] = "295";
wardid[295] = "296";
wardid[296] = "297";
wardid[297] = "298";
wardid[298] = "299";
wardid[299] = "300";
wardid[300] = "301";
wardid[301] = "302";
wardid[302] = "303";
wardid[303] = "304";
wardid[304] = "305";
wardid[305] = "306";
wardid[306] = "307";
wardid[307] = "308";
wardid[308] = "309";
wardid[309] = "310";
wardid[310] = "311";
wardid[311] = "312";
wardid[312] = "313";
wardid[313] = "314";
wardid[314] = "315";
wardid[315] = "316";
wardid[316] = "317";
wardid[317] = "318";
wardid[318] = "319";
wardid[319] = "320";
wardid[320] = "321";
wardid[321] = "322";
wardid[322] = "323";
wardid[323] = "324";
wardid[324] = "325";
wardid[325] = "326";
wardid[326] = "327";
wardid[327] = "328";
wardid[328] = "329";
wardid[329] = "330";
wardid[330] = "331";
wardid[331] = "332";
wardid[332] = "333";
wardid[333] = "334";
wardid[334] = "335";
wardid[335] = "336";
wardid[336] = "337";
wardid[337] = "338";
wardid[338] = "339";
wardid[339] = "340";
wardid[340] = "341";
wardid[341] = "342";
wardid[342] = "343";
wardid[343] = "344";
wardid[344] = "345";
wardid[345] = "346";
wardid[346] = "347";
wardid[347] = "348";
wardid[348] = "349";
wardid[349] = "350";
wardid[350] = "351";
wardid[351] = "352";
wardid[352] = "353";
wardid[353] = "354";
wardid[354] = "355";
wardid[355] = "356";
wardid[356] = "357";
wardid[357] = "358";
wardid[358] = "359";
wardid[359] = "360";
wardid[360] = "361";
wardid[361] = "362";
wardid[362] = "363";
wardid[363] = "364";
wardid[364] = "365";
wardid[365] = "366";
wardid[366] = "367";
wardid[367] = "368";
wardid[368] = "369";
wardid[369] = "370";
wardid[370] = "371";
wardid[371] = "372";
wardid[372] = "373";
wardid[373] = "374";
wardid[374] = "375";
wardid[375] = "376";
wardid[376] = "377";
wardid[377] = "378";
wardid[378] = "379";
wardid[379] = "380";
wardid[380] = "381";
wardid[381] = "382";
wardid[382] = "383";
wardid[383] = "384";
wardid[384] = "385";
wardid[385] = "386";
wardid[386] = "387";
wardid[387] = "388";
wardid[388] = "389";
wardid[389] = "390";
wardid[390] = "391";
wardid[391] = "392";
wardid[392] = "393";
wardid[393] = "394";
wardid[394] = "395";
wardid[395] = "396";
wardid[396] = "397";
wardid[397] = "398";
wardid[398] = "399";
wardid[399] = "400";
wardid[400] = "401";
wardid[401] = "402";
wardid[402] = "403";
wardid[403] = "404";
wardid[404] = "405";
wardid[405] = "406";
wardid[406] = "407";
wardid[407] = "408";
wardid[408] = "409";
wardid[409] = "410";
wardid[410] = "411";
wardid[411] = "412";
wardid[412] = "413";
wardid[413] = "414";
wardid[414] = "415";
wardid[415] = "416";
wardid[416] = "417";
wardid[417] = "418";
wardid[418] = "419";
wardid[419] = "420";
wardid[420] = "421";
wardid[421] = "422";
wardid[422] = "423";
wardid[423] = "424";
wardid[424] = "425";
wardid[425] = "426";
wardid[426] = "427";
wardid[427] = "428";
wardid[428] = "429";
wardid[429] = "430";
wardid[430] = "431";
wardid[431] = "432";
wardid[432] = "433";
wardid[433] = "434";
wardid[434] = "435";
wardid[435] = "436";
wardid[436] = "437";
wardid[437] = "438";
wardid[438] = "439";
wardid[439] = "440";
wardid[440] = "441";
wardid[441] = "442";
wardid[442] = "443";
wardid[443] = "444";
wardid[444] = "445";
wardid[445] = "446";
wardid[446] = "447";
wardid[447] = "448";
wardid[448] = "449";
wardid[449] = "450";
wardid[450] = "451";
wardid[451] = "452";
wardid[452] = "453";
wardid[453] = "454";
wardid[454] = "455";
wardid[455] = "456";
wardid[456] = "457";
wardid[457] = "458";
wardid[458] = "459";
wardid[459] = "460";
wardid[460] = "461";
wardid[461] = "462";
wardid[462] = "463";
wardid[463] = "464";
wardid[464] = "465";
wardid[465] = "466";
wardid[466] = "467";
wardid[467] = "468";
wardid[468] = "469";
wardid[469] = "470";
wardid[470] = "471";
wardid[471] = "472";
wardid[472] = "473";
wardid[473] = "474";
wardid[474] = "475";
wardid[475] = "476";
wardid[476] = "477";
wardid[477] = "478";
wardid[478] = "479";
wardid[479] = "480";
wardid[480] = "481";
wardid[481] = "482";
wardid[482] = "483";
wardid[483] = "484";
wardid[484] = "485";
wardid[485] = "486";
wardid[486] = "487";
wardid[487] = "488";
wardid[488] = "489";
wardid[489] = "490";
wardid[490] = "491";
wardid[491] = "492";
wardid[492] = "493";
wardid[493] = "494";
wardid[494] = "495";
wardid[495] = "496";
wardid[496] = "497";
wardid[497] = "498";
wardid[498] = "499";
wardid[499] = "500";
wardid[500] = "501";
wardid[501] = "502";
wardid[502] = "503";
wardid[503] = "504";
wardid[504] = "505";
wardid[505] = "506";
wardid[506] = "507";
wardid[507] = "508";
wardid[508] = "509";
wardid[509] = "510";
wardid[510] = "511";
wardid[511] = "512";
wardid[512] = "513";
wardid[513] = "514";
wardid[514] = "515";
wardid[515] = "516";
wardid[516] = "517";
wardid[517] = "518";
wardid[518] = "519";
wardid[519] = "520";
wardid[520] = "521";
wardid[521] = "522";
wardid[522] = "523";
wardid[523] = "524";
wardid[524] = "525";
wardid[525] = "526";
wardid[526] = "527";
wardid[527] = "528";
wardid[528] = "529";
wardid[529] = "530";
wardid[530] = "531";
wardid[531] = "532";
wardid[532] = "533";
wardid[533] = "534";
wardid[534] = "535";
wardid[535] = "536";
wardid[536] = "537";
wardid[537] = "538";
wardid[538] = "539";
wardid[539] = "540";
wardid[540] = "541";
wardid[541] = "542";
wardid[542] = "543";
wardid[543] = "544";
wardid[544] = "545";
wardid[545] = "546";
wardid[546] = "547";
wardid[547] = "548";
wardid[548] = "549";
wardid[549] = "550";
wardid[550] = "551";
wardid[551] = "552";
wardid[552] = "553";
wardid[553] = "554";
wardid[554] = "555";
wardid[555] = "556";
wardid[556] = "557";
wardid[557] = "558";
wardid[558] = "559";
wardid[559] = "560";
wardid[560] = "561";
wardid[561] = "562";
wardid[562] = "563";
wardid[563] = "564";
wardid[564] = "565";
wardid[565] = "566";
wardid[566] = "567";
wardid[567] = "568";
wardid[568] = "569";
wardid[569] = "570";
wardid[570] = "571";
wardid[571] = "572";
wardid[572] = "573";
wardid[573] = "574";
wardid[574] = "575";
wardid[575] = "576";
wardid[576] = "577";
wardid[577] = "578";
wardid[578] = "579";
wardid[579] = "580";
wardid[580] = "581";
wardid[581] = "582";
wardid[582] = "583";
wardid[583] = "584";
wardid[584] = "585";
wardid[585] = "586";
wardid[586] = "587";
wardid[587] = "588";
wardid[588] = "589";
wardid[589] = "590";
wardid[590] = "591";
wardid[591] = "592";
wardid[592] = "593";
wardid[593] = "594";
wardid[594] = "595";
wardid[595] = "596";
wardid[596] = "597";
wardid[597] = "598";
wardid[598] = "599";
wardid[599] = "600";
wardid[600] = "601";
				var diagnosiscode = new Array();
diagnosiscode[0] = "C19";
diagnosiscode[1] = "C21";
diagnosiscode[2] = "D0070";
diagnosiscode[3] = "D0080";
diagnosiscode[4] = "D0111";
diagnosiscode[5] = "D0133";
diagnosiscode[6] = "D0153";
diagnosiscode[7] = "D0188";
diagnosiscode[8] = "D01880";
diagnosiscode[9] = "D0190";
diagnosiscode[10] = "D0197";
diagnosiscode[11] = "D0235";
diagnosiscode[12] = "D0316";
diagnosiscode[13] = "D0350";
diagnosiscode[14] = "D0403";
diagnosiscode[15] = "D0404";
diagnosiscode[16] = "D0406";
diagnosiscode[17] = "D05022";
diagnosiscode[18] = "D0520";
diagnosiscode[19] = "D05201";
diagnosiscode[20] = "D05202";
diagnosiscode[21] = "D05204";
diagnosiscode[22] = "D05205";
diagnosiscode[23] = "D05224";
diagnosiscode[24] = "D0524";
diagnosiscode[25] = "D0550";
diagnosiscode[26] = "D0552";
diagnosiscode[27] = "D0557";
diagnosiscode[28] = "D0567";
diagnosiscode[29] = "D0575";
diagnosiscode[30] = "D0650";
diagnosiscode[31] = "D0655";
diagnosiscode[32] = "D0664";
diagnosiscode[33] = "D0683";
diagnosiscode[34] = "D0689";
diagnosiscode[35] = "D06890";
diagnosiscode[36] = "D0741";
diagnosiscode[37] = "D0743";
diagnosiscode[38] = "D0757";
diagnosiscode[39] = "D0804";
diagnosiscode[40] = "D0828";
diagnosiscode[41] = "D08286";
diagnosiscode[42] = "D1070";
diagnosiscode[43] = "D1183";
diagnosiscode[44] = "D1192";
diagnosiscode[45] = "D11920";
diagnosiscode[46] = "D1201";
diagnosiscode[47] = "D1420";
diagnosiscode[48] = "D2190";
diagnosiscode[49] = "D2193";
diagnosiscode[50] = "D2261";
diagnosiscode[51] = "D22610";
diagnosiscode[52] = "D2311";
diagnosiscode[53] = "D2372";
diagnosiscode[54] = "D2381";
diagnosiscode[55] = "D2502";
diagnosiscode[56] = "D2503";
diagnosiscode[57] = "D2518";
diagnosiscode[58] = "D2613";
diagnosiscode[59] = "D3071";
diagnosiscode[60] = "D30710";
diagnosiscode[61] = "D3151";
diagnosiscode[62] = "D3170";
diagnosiscode[63] = "D3181";
diagnosiscode[64] = "D3540";
diagnosiscode[65] = "D3600";
diagnosiscode[66] = "D3610";
diagnosiscode[67] = "D3616";
diagnosiscode[68] = "D3618";
diagnosiscode[69] = "D3619";
diagnosiscode[70] = "D3622";
diagnosiscode[71] = "D3678";
diagnosiscode[72] = "D3867";
diagnosiscode[73] = "D38670";
diagnosiscode[74] = "D3868";
diagnosiscode[75] = "D38680";
diagnosiscode[76] = "D3872";
diagnosiscode[77] = "D3874";
diagnosiscode[78] = "D3876";
diagnosiscode[79] = "D3888";
diagnosiscode[80] = "D3890";
diagnosiscode[81] = "D400827";
diagnosiscode[82] = "D4031";
diagnosiscode[83] = "D4050";
diagnosiscode[84] = "D4060";
diagnosiscode[85] = "D4260";
diagnosiscode[86] = "D4294";
diagnosiscode[87] = "D4544";
diagnosiscode[88] = "D4587";
diagnosiscode[89] = "D4684";
diagnosiscode[90] = "D4722";
diagnosiscode[91] = "D4743";
diagnosiscode[92] = "D4773";
diagnosiscode[93] = "D4808";
diagnosiscode[94] = "D5202";
diagnosiscode[95] = "D5204";
diagnosiscode[96] = "D5205";
diagnosiscode[97] = "D5425";
diagnosiscode[98] = "D5432";
diagnosiscode[99] = "D5712";
diagnosiscode[100] = "D6122";
diagnosiscode[101] = "D6214";
diagnosiscode[102] = "D6216";
diagnosiscode[103] = "D62160";
diagnosiscode[104] = "D6217";
diagnosiscode[105] = "D6218";
diagnosiscode[106] = "D6219";
diagnosiscode[107] = "D6251";
diagnosiscode[108] = "D62510";
diagnosiscode[109] = "D6255";
diagnosiscode[110] = "D62555";
diagnosiscode[111] = "D6256";
diagnosiscode[112] = "D6259";
diagnosiscode[113] = "D6261";
diagnosiscode[114] = "D6502";
diagnosiscode[115] = "D6505";
diagnosiscode[116] = "D6540";
diagnosiscode[117] = "D6702";
diagnosiscode[118] = "D6705";
diagnosiscode[119] = "D6718";
diagnosiscode[120] = "D6730";
diagnosiscode[121] = "D67300";
diagnosiscode[122] = "D6740";
diagnosiscode[123] = "D6755";
diagnosiscode[124] = "D6763";
diagnosiscode[125] = "D6803";
diagnosiscode[126] = "D7100";
diagnosiscode[127] = "D7150";
diagnosiscode[128] = "D7210";
diagnosiscode[129] = "D7211";
diagnosiscode[130] = "D7250";
diagnosiscode[131] = "D7251";
diagnosiscode[132] = "D7304";
diagnosiscode[133] = "D7321";
diagnosiscode[134] = "D7324";
diagnosiscode[135] = "D7355";
diagnosiscode[136] = "D7372";
diagnosiscode[137] = "D7511";
diagnosiscode[138] = "D7610";
diagnosiscode[139] = "D7621";
diagnosiscode[140] = "D7651";
diagnosiscode[141] = "D7695";
diagnosiscode[142] = "D77050";
diagnosiscode[143] = "D8004";
diagnosiscode[144] = "D8081";
diagnosiscode[145] = "D8430";
diagnosiscode[146] = "D8450";
diagnosiscode[147] = "D8505";
diagnosiscode[148] = "D8540";
diagnosiscode[149] = "D8723";
diagnosiscode[150] = "D8770";
diagnosiscode[151] = "D8777";
diagnosiscode[152] = "DX062";
diagnosiscode[153] = "E0";
diagnosiscode[154] = "E0036";
diagnosiscode[155] = "E0110";
diagnosiscode[156] = "E0480";
diagnosiscode[157] = "E1";
diagnosiscode[158] = "E1000";
diagnosiscode[159] = "E1070";
diagnosiscode[160] = "E10700";
diagnosiscode[161] = "E1370";
diagnosiscode[162] = "E13700";
diagnosiscode[163] = "E13702";
diagnosiscode[164] = "E13703";
diagnosiscode[165] = "E1851";
diagnosiscode[166] = "E18510";
diagnosiscode[167] = "E1901";
diagnosiscode[168] = "E2";
diagnosiscode[169] = "E2001";
diagnosiscode[170] = "E2010";
diagnosiscode[171] = "E2016";
diagnosiscode[172] = "E2017";
diagnosiscode[173] = "E2200";
diagnosiscode[174] = "E2420";
diagnosiscode[175] = "E2800";
diagnosiscode[176] = "E3";
diagnosiscode[177] = "E3000";
diagnosiscode[178] = "E3212";
diagnosiscode[179] = "E3213";
diagnosiscode[180] = "E3221";
diagnosiscode[181] = "E3223";
diagnosiscode[182] = "E3340";
diagnosiscode[183] = "E33400";
diagnosiscode[184] = "E33403";
diagnosiscode[185] = "E3345";
diagnosiscode[186] = "E33450";
diagnosiscode[187] = "E33453";
diagnosiscode[188] = "E33456";
diagnosiscode[189] = "E3619";
diagnosiscode[190] = "E3860";
diagnosiscode[191] = "E3866";
diagnosiscode[192] = "E4";
diagnosiscode[193] = "E4000";
diagnosiscode[194] = "E4061";
diagnosiscode[195] = "E40610";
diagnosiscode[196] = "E4080";
diagnosiscode[197] = "E40800";
diagnosiscode[198] = "E40806";
diagnosiscode[199] = "E4120";
diagnosiscode[200] = "E41200";
diagnosiscode[201] = "E4225";
diagnosiscode[202] = "E4300";
diagnosiscode[203] = "E43000";
diagnosiscode[204] = "E4301";
diagnosiscode[205] = "E4331";
diagnosiscode[206] = "E4336";
diagnosiscode[207] = "E4415";
diagnosiscode[208] = "E4416";
diagnosiscode[209] = "E4432";
diagnosiscode[210] = "E44320";
diagnosiscode[211] = "E4544";
diagnosiscode[212] = "E4545";
diagnosiscode[213] = "E4686";
diagnosiscode[214] = "E4710";
diagnosiscode[215] = "E4726";
diagnosiscode[216] = "E4727";
diagnosiscode[217] = "E4800";
diagnosiscode[218] = "E5";
diagnosiscode[219] = "E5510";
diagnosiscode[220] = "E5911";
diagnosiscode[221] = "E6";
diagnosiscode[222] = "E7";
diagnosiscode[223] = "E7000";
diagnosiscode[224] = "E70050";
diagnosiscode[225] = "E8334";
diagnosiscode[226] = "E8508";
diagnosiscode[227] = "E85080";
diagnosiscode[228] = "E8570";
diagnosiscode[229] = "E9002";
diagnosiscode[230] = "E9012";
diagnosiscode[231] = "E9021";
diagnosiscode[232] = "E9068";
diagnosiscode[233] = "E9320";
diagnosiscode[234] = "E9471";
diagnosiscode[235] = "E9475";
diagnosiscode[236] = "E99200";
diagnosiscode[237] = "EN";
diagnosiscode[238] = "F01220";
diagnosiscode[239] = "F04400";
diagnosiscode[240] = "F10364";
diagnosiscode[241] = "F10520";
diagnosiscode[242] = "F13600";
diagnosiscode[243] = "F26370";
diagnosiscode[244] = "F26400";
diagnosiscode[245] = "F30060";
diagnosiscode[246] = "F31000";
diagnosiscode[247] = "F31100";
diagnosiscode[248] = "F31170";
diagnosiscode[249] = "F31820";
diagnosiscode[250] = "F31920";
diagnosiscode[251] = "F32440";
diagnosiscode[252] = "F32604";
diagnosiscode[253] = "F33710";
diagnosiscode[254] = "F33780";
diagnosiscode[255] = "F35180";
diagnosiscode[256] = "F35250";
diagnosiscode[257] = "F35380";
diagnosiscode[258] = "F35430";
diagnosiscode[259] = "F35620";
diagnosiscode[260] = "F35680";
diagnosiscode[261] = "F42000";
diagnosiscode[262] = "F42400";
diagnosiscode[263] = "F44100";
diagnosiscode[264] = "F44110";
diagnosiscode[265] = "F65830";
diagnosiscode[266] = "F65890";
diagnosiscode[267] = "F70330";
diagnosiscode[268] = "F70700";
diagnosiscode[269] = "F72240";
diagnosiscode[270] = "F82800";
diagnosiscode[271] = "F8340";
diagnosiscode[272] = "F90060";
diagnosiscode[273] = "FY0200";
diagnosiscode[274] = "GATE";
diagnosiscode[275] = "H.G.";
diagnosiscode[276] = "HG";
diagnosiscode[277] = "INC";
diagnosiscode[278] = "LG";
diagnosiscode[279] = "M00100";
diagnosiscode[280] = "M00300";
diagnosiscode[281] = "M00610";
diagnosiscode[282] = "M01000";
diagnosiscode[283] = "M01110";
diagnosiscode[284] = "M01120";
diagnosiscode[285] = "M01400";
diagnosiscode[286] = "M02160";
diagnosiscode[287] = "M02610";
diagnosiscode[288] = "M02620";
diagnosiscode[289] = "M02760";
diagnosiscode[290] = "M03000";
diagnosiscode[291] = "M03010";
diagnosiscode[292] = "M03260";
diagnosiscode[293] = "M04010";
diagnosiscode[294] = "M05204";
diagnosiscode[295] = "M05240";
diagnosiscode[296] = "M09000";
diagnosiscode[297] = "M09010";
diagnosiscode[298] = "M09070";
diagnosiscode[299] = "M09150";
diagnosiscode[300] = "M09350";
diagnosiscode[301] = "M09400";
diagnosiscode[302] = "M09450";
diagnosiscode[303] = "M09460";
diagnosiscode[304] = "M09840";
diagnosiscode[305] = "M10000";
diagnosiscode[306] = "M100000";
diagnosiscode[307] = "M11460";
diagnosiscode[308] = "M11540";
diagnosiscode[309] = "M11560";
diagnosiscode[310] = "M11600";
diagnosiscode[311] = "M11620";
diagnosiscode[312] = "M11640";
diagnosiscode[313] = "M11660";
diagnosiscode[314] = "M12000";
diagnosiscode[315] = "M12040";
diagnosiscode[316] = "M12300";
diagnosiscode[317] = "M14000";
diagnosiscode[318] = "M14003";
diagnosiscode[319] = "M14004";
diagnosiscode[320] = "M14020";
diagnosiscode[321] = "M14026";
diagnosiscode[322] = "M14036";
diagnosiscode[323] = "M14100";
diagnosiscode[324] = "M14110";
diagnosiscode[325] = "M14300";
diagnosiscode[326] = "M14400";
diagnosiscode[327] = "M14420";
diagnosiscode[328] = "M14430";
diagnosiscode[329] = "M14510";
diagnosiscode[330] = "M14700";
diagnosiscode[331] = "M14940";
diagnosiscode[332] = "M15000";
diagnosiscode[333] = "M15600";
diagnosiscode[334] = "M15880";
diagnosiscode[335] = "M18000";
diagnosiscode[336] = "M18200";
diagnosiscode[337] = "M18800";
diagnosiscode[338] = "M20000";
diagnosiscode[339] = "M20050";
diagnosiscode[340] = "M20100";
diagnosiscode[341] = "M20150";
diagnosiscode[342] = "M20400";
diagnosiscode[343] = "M21000";
diagnosiscode[344] = "M21300";
diagnosiscode[345] = "M21400";
diagnosiscode[346] = "M21510";
diagnosiscode[347] = "M21570";
diagnosiscode[348] = "M21600";
diagnosiscode[349] = "M21630";
diagnosiscode[350] = "M21700";
diagnosiscode[351] = "M21800";
diagnosiscode[352] = "M22300";
diagnosiscode[353] = "M22360";
diagnosiscode[354] = "M22930";
diagnosiscode[355] = "M23000";
diagnosiscode[356] = "M23070";
diagnosiscode[357] = "M23080";
diagnosiscode[358] = "M24570";
diagnosiscode[359] = "M24590";
diagnosiscode[360] = "M24600";
diagnosiscode[361] = "M24810";
diagnosiscode[362] = "M26000";
diagnosiscode[363] = "M26010";
diagnosiscode[364] = "M26020";
diagnosiscode[365] = "M26040";
diagnosiscode[366] = "M26080";
diagnosiscode[367] = "M26090";
diagnosiscode[368] = "M26200";
diagnosiscode[369] = "M26360";
diagnosiscode[370] = "M26370";
diagnosiscode[371] = "M26500";
diagnosiscode[372] = "M26520";
diagnosiscode[373] = "M26560";
diagnosiscode[374] = "M26730";
diagnosiscode[375] = "M26900";
diagnosiscode[376] = "M27660";
diagnosiscode[377] = "M28000";
diagnosiscode[378] = "M28010";
diagnosiscode[379] = "M28020";
diagnosiscode[380] = "M28030";
diagnosiscode[381] = "M28100";
diagnosiscode[382] = "M28130";
diagnosiscode[383] = "M29000";
diagnosiscode[384] = "M29002";
diagnosiscode[385] = "M29030";
diagnosiscode[386] = "M29040";
diagnosiscode[387] = "M29050";
diagnosiscode[388] = "M29060";
diagnosiscode[389] = "M29070";
diagnosiscode[390] = "M29150";
diagnosiscode[391] = "M29160";
diagnosiscode[392] = "M29190";
diagnosiscode[393] = "M29210";
diagnosiscode[394] = "M29220";
diagnosiscode[395] = "M29240";
diagnosiscode[396] = "M29280";
diagnosiscode[397] = "M29310";
diagnosiscode[398] = "M29360";
diagnosiscode[399] = "M29440";
diagnosiscode[400] = "M29460";
diagnosiscode[401] = "M29610";
diagnosiscode[402] = "M29640";
diagnosiscode[403] = "M29650";
diagnosiscode[404] = "M29700";
diagnosiscode[405] = "M29720";
diagnosiscode[406] = "M30000";
diagnosiscode[407] = "M30010";
diagnosiscode[408] = "M30280";
diagnosiscode[409] = "M30400";
diagnosiscode[410] = "M30470";
diagnosiscode[411] = "M30500";
diagnosiscode[412] = "M30520";
diagnosiscode[413] = "M31000";
diagnosiscode[414] = "M31050";
diagnosiscode[415] = "M31080";
diagnosiscode[416] = "M31130";
diagnosiscode[417] = "M31140";
diagnosiscode[418] = "M31580";
diagnosiscode[419] = "M31600";
diagnosiscode[420] = "M31606";
diagnosiscode[421] = "M31650";
diagnosiscode[422] = "M31660";
diagnosiscode[423] = "M31680";
diagnosiscode[424] = "M32100";
diagnosiscode[425] = "M32103";
diagnosiscode[426] = "M32220";
diagnosiscode[427] = "M32400";
diagnosiscode[428] = "M32430";
diagnosiscode[429] = "M32470";
diagnosiscode[430] = "M32590";
diagnosiscode[431] = "M32600";
diagnosiscode[432] = "M32620";
diagnosiscode[433] = "M32624";
diagnosiscode[434] = "M32630";
diagnosiscode[435] = "M32640";
diagnosiscode[436] = "M32660";
diagnosiscode[437] = "M32700";
diagnosiscode[438] = "M32710";
diagnosiscode[439] = "M32800";
diagnosiscode[440] = "M32810";
diagnosiscode[441] = "M32830";
diagnosiscode[442] = "M32850";
diagnosiscode[443] = "M33000";
diagnosiscode[444] = "M33060";
diagnosiscode[445] = "M33070";
diagnosiscode[446] = "M33170";
diagnosiscode[447] = "M33200";
diagnosiscode[448] = "M33220";
diagnosiscode[449] = "M33300";
diagnosiscode[450] = "M33320";
diagnosiscode[451] = "M33380";
diagnosiscode[452] = "M33400";
diagnosiscode[453] = "M33410";
diagnosiscode[454] = "M33420";
diagnosiscode[455] = "M33430";
diagnosiscode[456] = "M33450";
diagnosiscode[457] = "M33470";
diagnosiscode[458] = "M33490";
diagnosiscode[459] = "M33500";
diagnosiscode[460] = "M33510";
diagnosiscode[461] = "M33520";
diagnosiscode[462] = "M33540";
diagnosiscode[463] = "M33600";
diagnosiscode[464] = "M33640";
diagnosiscode[465] = "M33700";
diagnosiscode[466] = "M33770";
diagnosiscode[467] = "M33790";
diagnosiscode[468] = "M33800";
diagnosiscode[469] = "M33900";
diagnosiscode[470] = "M33910";
diagnosiscode[471] = "M34000";
diagnosiscode[472] = "M34006";
diagnosiscode[473] = "M34020";
diagnosiscode[474] = "M34070";
diagnosiscode[475] = "M34100";
diagnosiscode[476] = "M34110";
diagnosiscode[477] = "M34160";
diagnosiscode[478] = "M34200";
diagnosiscode[479] = "M34210";
diagnosiscode[480] = "M34220";
diagnosiscode[481] = "M35000";
diagnosiscode[482] = "M35100";
diagnosiscode[483] = "M35101";
diagnosiscode[484] = "M35102";
diagnosiscode[485] = "M35103";
diagnosiscode[486] = "M35110";
diagnosiscode[487] = "M35130";
diagnosiscode[488] = "M35140";
diagnosiscode[489] = "M35142";
diagnosiscode[490] = "M35150";
diagnosiscode[491] = "M35300";
diagnosiscode[492] = "M35340";
diagnosiscode[493] = "M35360";
diagnosiscode[494] = "M36000";
diagnosiscode[495] = "M36100";
diagnosiscode[496] = "M36101";
diagnosiscode[497] = "M36200";
diagnosiscode[498] = "M36260";
diagnosiscode[499] = "M36270";
diagnosiscode[500] = "M36310";
diagnosiscode[501] = "M36360";
diagnosiscode[502] = "M36370";
diagnosiscode[503] = "M36500";
diagnosiscode[504] = "M36600";
diagnosiscode[505] = "M37000";
diagnosiscode[506] = "M37020";
diagnosiscode[507] = "M37050";
diagnosiscode[508] = "M37100";
diagnosiscode[509] = "M37120";
diagnosiscode[510] = "M37300";
diagnosiscode[511] = "M38000";
diagnosiscode[512] = "M38001";
diagnosiscode[513] = "M38003";
diagnosiscode[514] = "M38004";
diagnosiscode[515] = "M38008";
diagnosiscode[516] = "M38010";
diagnosiscode[517] = "M38020";
diagnosiscode[518] = "M38090";
diagnosiscode[519] = "M38130";
diagnosiscode[520] = "M39100";
diagnosiscode[521] = "M39110";
diagnosiscode[522] = "M39290";
diagnosiscode[523] = "M39300";
diagnosiscode[524] = "M39320";
diagnosiscode[525] = "M39800";
diagnosiscode[526] = "M40000";
diagnosiscode[527] = "M40030";
diagnosiscode[528] = "M40040";
diagnosiscode[529] = "M40160";
diagnosiscode[530] = "M40200";
diagnosiscode[531] = "M40400";
diagnosiscode[532] = "M40460";
diagnosiscode[533] = "M40500";
diagnosiscode[534] = "M40590";
diagnosiscode[535] = "M40600";
diagnosiscode[536] = "M40700";
diagnosiscode[537] = "M40760";
diagnosiscode[538] = "M40800";
diagnosiscode[539] = "M40960";
diagnosiscode[540] = "M41000";
diagnosiscode[541] = "M41040";
diagnosiscode[542] = "M41200";
diagnosiscode[543] = "M41300";
diagnosiscode[544] = "M41400";
diagnosiscode[545] = "M41420";
diagnosiscode[546] = "M41600";
diagnosiscode[547] = "M41700";
diagnosiscode[548] = "M41730";
diagnosiscode[549] = "M41740";
diagnosiscode[550] = "M41810";
diagnosiscode[551] = "M42000";
diagnosiscode[552] = "M42100";
diagnosiscode[553] = "M43000";
diagnosiscode[554] = "M43030";
diagnosiscode[555] = "M43080";
diagnosiscode[556] = "M43140";
diagnosiscode[557] = "M43150";
diagnosiscode[558] = "M43180";
diagnosiscode[559] = "M43500";
diagnosiscode[560] = "M43740";
diagnosiscode[561] = "M43750";
diagnosiscode[562] = "M43800";
diagnosiscode[563] = "M44000";
diagnosiscode[564] = "M44040";
diagnosiscode[565] = "M44050";
diagnosiscode[566] = "M44070";
diagnosiscode[567] = "M44080";
diagnosiscode[568] = "M44090";
diagnosiscode[569] = "M44100";
diagnosiscode[570] = "M44110";
diagnosiscode[571] = "M44140";
diagnosiscode[572] = "M44180";
diagnosiscode[573] = "M44200";
diagnosiscode[574] = "M44210";
diagnosiscode[575] = "M44400";
diagnosiscode[576] = "M44440";
diagnosiscode[577] = "M44460";
diagnosiscode[578] = "M44600";
diagnosiscode[579] = "M44700";
diagnosiscode[580] = "M44760";
diagnosiscode[581] = "M44900";
diagnosiscode[582] = "M44920";
diagnosiscode[583] = "M44940";
diagnosiscode[584] = "M45000";
diagnosiscode[585] = "M45020";
diagnosiscode[586] = "M45330";
diagnosiscode[587] = "M45620";
diagnosiscode[588] = "M45810";
diagnosiscode[589] = "M46000";
diagnosiscode[590] = "M46182";
diagnosiscode[591] = "M46240";
diagnosiscode[592] = "M46300";
diagnosiscode[593] = "M46320";
diagnosiscode[594] = "M46340";
diagnosiscode[595] = "M46350";
diagnosiscode[596] = "M46360";
diagnosiscode[597] = "M46400";
diagnosiscode[598] = "M46420";
diagnosiscode[599] = "M46450";
diagnosiscode[600] = "M46460";
diagnosiscode[601] = "M46520";
diagnosiscode[602] = "M46540";
diagnosiscode[603] = "M46620";
diagnosiscode[604] = "M46780";
diagnosiscode[605] = "M46810";
diagnosiscode[606] = "M46811";
diagnosiscode[607] = "M46812";
diagnosiscode[608] = "M46830";
diagnosiscode[609] = "M46832";
diagnosiscode[610] = "M46840";
diagnosiscode[611] = "M46842";
diagnosiscode[612] = "M46860";
diagnosiscode[613] = "M46870";
diagnosiscode[614] = "M46880";
diagnosiscode[615] = "M47000";
diagnosiscode[616] = "M47150";
diagnosiscode[617] = "M47170";
diagnosiscode[618] = "M47200";
diagnosiscode[619] = "M47400";
diagnosiscode[620] = "M47710";
diagnosiscode[621] = "M47720";
diagnosiscode[622] = "M47830";
diagnosiscode[623] = "M48000";
diagnosiscode[624] = "M48010";
diagnosiscode[625] = "M48120";
diagnosiscode[626] = "M48130";
diagnosiscode[627] = "M48200";
diagnosiscode[628] = "M48400";
diagnosiscode[629] = "M48510";
diagnosiscode[630] = "M48540";
diagnosiscode[631] = "M48550";
diagnosiscode[632] = "M48560";
diagnosiscode[633] = "M48580";
diagnosiscode[634] = "M48610";
diagnosiscode[635] = "M48620";
diagnosiscode[636] = "M48800";
diagnosiscode[637] = "M48820";
diagnosiscode[638] = "M48840";
diagnosiscode[639] = "M48880";
diagnosiscode[640] = "M48890";
diagnosiscode[641] = "M48960";
diagnosiscode[642] = "M48980";
diagnosiscode[643] = "M49000";
diagnosiscode[644] = "M49001";
diagnosiscode[645] = "M49006";
diagnosiscode[646] = "M49020";
diagnosiscode[647] = "M49060";
diagnosiscode[648] = "M49090";
diagnosiscode[649] = "M49130";
diagnosiscode[650] = "M49160";
diagnosiscode[651] = "M49250";
diagnosiscode[652] = "M49400";
diagnosiscode[653] = "M49430";
diagnosiscode[654] = "M49500";
diagnosiscode[655] = "M49510";
diagnosiscode[656] = "M49520";
diagnosiscode[657] = "M49530";
diagnosiscode[658] = "M49580";
diagnosiscode[659] = "M49590";
diagnosiscode[660] = "M49710";
diagnosiscode[661] = "M49720";
diagnosiscode[662] = "M49730";
diagnosiscode[663] = "M49770";
diagnosiscode[664] = "M49900";
diagnosiscode[665] = "M49910";
diagnosiscode[666] = "M49920";
diagnosiscode[667] = "M50000";
diagnosiscode[668] = "M50010";
diagnosiscode[669] = "M50020";
diagnosiscode[670] = "M50030";
diagnosiscode[671] = "M50060";
diagnosiscode[672] = "M50070";
diagnosiscode[673] = "M50080";
diagnosiscode[674] = "M50100";
diagnosiscode[675] = "M50140";
diagnosiscode[676] = "M50180";
diagnosiscode[677] = "M50210";
diagnosiscode[678] = "M50230";
diagnosiscode[679] = "M50280";
diagnosiscode[680] = "M51550";
diagnosiscode[681] = "M51570";
diagnosiscode[682] = "M52000";
diagnosiscode[683] = "M52100";
diagnosiscode[684] = "M52101";
diagnosiscode[685] = "M52110";
diagnosiscode[686] = "M52120";
diagnosiscode[687] = "M52200";
diagnosiscode[688] = "M52430";
diagnosiscode[689] = "M52470";
diagnosiscode[690] = "M52500";
diagnosiscode[691] = "M53100";
diagnosiscode[692] = "M53150";
diagnosiscode[693] = "M53160";
diagnosiscode[694] = "M53300";
diagnosiscode[695] = "M53301";
diagnosiscode[696] = "M53302";
diagnosiscode[697] = "M53320";
diagnosiscode[698] = "M53340";
diagnosiscode[699] = "M53341";
diagnosiscode[700] = "M53350";
diagnosiscode[701] = "M53351";
diagnosiscode[702] = "M54000";
diagnosiscode[703] = "M54001";
diagnosiscode[704] = "M54030";
diagnosiscode[705] = "M54040";
diagnosiscode[706] = "M54090";
diagnosiscode[707] = "M54110";
diagnosiscode[708] = "M54120";
diagnosiscode[709] = "M54200";
diagnosiscode[710] = "M54220";
diagnosiscode[711] = "M54300";
diagnosiscode[712] = "M54310";
diagnosiscode[713] = "M54600";
diagnosiscode[714] = "M54660";
diagnosiscode[715] = "M54700";
diagnosiscode[716] = "M54720";
diagnosiscode[717] = "M54730";
diagnosiscode[718] = "M54750";
diagnosiscode[719] = "M54760";
diagnosiscode[720] = "M55000";
diagnosiscode[721] = "M55040";
diagnosiscode[722] = "M55070";
diagnosiscode[723] = "M55100";
diagnosiscode[724] = "M55110";
diagnosiscode[725] = "M55250";
diagnosiscode[726] = "M55280";
diagnosiscode[727] = "M55300";
diagnosiscode[728] = "M55370";
diagnosiscode[729] = "M55380";
diagnosiscode[730] = "M55400";
diagnosiscode[731] = "M55430";
diagnosiscode[732] = "M55480";
diagnosiscode[733] = "M55500";
diagnosiscode[734] = "M55590";
diagnosiscode[735] = "M55600";
diagnosiscode[736] = "M55690";
diagnosiscode[737] = "M55800";
diagnosiscode[738] = "M55820";
diagnosiscode[739] = "M56000";
diagnosiscode[740] = "M56010";
diagnosiscode[741] = "M56680";
diagnosiscode[742] = "M56750";
diagnosiscode[743] = "M57000";
diagnosiscode[744] = "M57160";
diagnosiscode[745] = "M57200";
diagnosiscode[746] = "M57210";
diagnosiscode[747] = "M57240";
diagnosiscode[748] = "M57250";
diagnosiscode[749] = "M57260";
diagnosiscode[750] = "M57280";
diagnosiscode[751] = "M57330";
diagnosiscode[752] = "M57500";
diagnosiscode[753] = "M57510";
diagnosiscode[754] = "M57610";
diagnosiscode[755] = "M57740";
diagnosiscode[756] = "M58000";
diagnosiscode[757] = "M58005";
diagnosiscode[758] = "M58006";
diagnosiscode[759] = "M58007";
diagnosiscode[760] = "M58010";
diagnosiscode[761] = "M58050";
diagnosiscode[762] = "M58110";
diagnosiscode[763] = "M58240";
diagnosiscode[764] = "M58500";
diagnosiscode[765] = "M58600";
diagnosiscode[766] = "M58760";
diagnosiscode[767] = "M58790";
diagnosiscode[768] = "M59100";
diagnosiscode[769] = "M62120";
diagnosiscode[770] = "M62140";
diagnosiscode[771] = "M64000";
diagnosiscode[772] = "M65600";
diagnosiscode[773] = "M68130";
diagnosiscode[774] = "M69000";
diagnosiscode[775] = "M69210";
diagnosiscode[776] = "M69700";
diagnosiscode[777] = "M69710";
diagnosiscode[778] = "M69720";
diagnosiscode[779] = "M69730";
diagnosiscode[780] = "M69750";
diagnosiscode[781] = "M69760";
diagnosiscode[782] = "M69790";
diagnosiscode[783] = "M69820";
diagnosiscode[784] = "M69870";
diagnosiscode[785] = "M69880";
diagnosiscode[786] = "M70800";
diagnosiscode[787] = "M71000";
diagnosiscode[788] = "M71070";
diagnosiscode[789] = "M71430";
diagnosiscode[790] = "M71440";
diagnosiscode[791] = "M71600";
diagnosiscode[792] = "M71601";
diagnosiscode[793] = "M71602";
diagnosiscode[794] = "M71620";
diagnosiscode[795] = "M71640";
diagnosiscode[796] = "M71650";
diagnosiscode[797] = "M71800";
diagnosiscode[798] = "M72000";
diagnosiscode[799] = "M72003";
diagnosiscode[800] = "M72005";
diagnosiscode[801] = "M72010";
diagnosiscode[802] = "M72020";
diagnosiscode[803] = "M72030";
diagnosiscode[804] = "M72040";
diagnosiscode[805] = "M72050";
diagnosiscode[806] = "M72060";
diagnosiscode[807] = "M72090";
diagnosiscode[808] = "M72100";
diagnosiscode[809] = "M72120";
diagnosiscode[810] = "M72150";
diagnosiscode[811] = "M72170";
diagnosiscode[812] = "M72175";
diagnosiscode[813] = "M72200";
diagnosiscode[814] = "M72205";
diagnosiscode[815] = "M72210";
diagnosiscode[816] = "M72220";
diagnosiscode[817] = "M72230";
diagnosiscode[818] = "M72240";
diagnosiscode[819] = "M72260";
diagnosiscode[820] = "M72280";
diagnosiscode[821] = "M72400";
diagnosiscode[822] = "M72420";
diagnosiscode[823] = "M72425";
diagnosiscode[824] = "M72430";
diagnosiscode[825] = "M72440";
diagnosiscode[826] = "M72450";
diagnosiscode[827] = "M72460";
diagnosiscode[828] = "M72480";
diagnosiscode[829] = "M72570";
diagnosiscode[830] = "M72595";
diagnosiscode[831] = "M72600";
diagnosiscode[832] = "M72610";
diagnosiscode[833] = "M72670";
diagnosiscode[834] = "M72710";
diagnosiscode[835] = "M72750";
diagnosiscode[836] = "M72760";
diagnosiscode[837] = "M72830";
diagnosiscode[838] = "M72850";
diagnosiscode[839] = "M72860";
diagnosiscode[840] = "M72900";
diagnosiscode[841] = "M72920";
diagnosiscode[842] = "M72940";
diagnosiscode[843] = "M73000";
diagnosiscode[844] = "M73020";
diagnosiscode[845] = "M73070";
diagnosiscode[846] = "M73220";
diagnosiscode[847] = "M73300";
diagnosiscode[848] = "M73310";
diagnosiscode[849] = "M73320";
diagnosiscode[850] = "M73325";
diagnosiscode[851] = "M73330";
diagnosiscode[852] = "M73335";
diagnosiscode[853] = "M73370";
diagnosiscode[854] = "M73380";
diagnosiscode[855] = "M73400";
diagnosiscode[856] = "M73500";
diagnosiscode[857] = "M73670";
diagnosiscode[858] = "M74000";
diagnosiscode[859] = "M74006";
diagnosiscode[860] = "M74007";
diagnosiscode[861] = "M74008";
diagnosiscode[862] = "M74009";
diagnosiscode[863] = "M74010";
diagnosiscode[864] = "M74030";
diagnosiscode[865] = "M74100";
diagnosiscode[866] = "M74200";
diagnosiscode[867] = "M74220";
diagnosiscode[868] = "M74240";
diagnosiscode[869] = "M74300";
diagnosiscode[870] = "M74320";
diagnosiscode[871] = "M74325";
diagnosiscode[872] = "M74400";
diagnosiscode[873] = "M74406";
diagnosiscode[874] = "M74407";
diagnosiscode[875] = "M74408";
diagnosiscode[876] = "M74840";
diagnosiscode[877] = "M74860";
diagnosiscode[878] = "M74910";
diagnosiscode[879] = "M74920";
diagnosiscode[880] = "M74970";
diagnosiscode[881] = "M75010";
diagnosiscode[882] = "M75030";
diagnosiscode[883] = "M75300";
diagnosiscode[884] = "M75400";
diagnosiscode[885] = "M75500";
diagnosiscode[886] = "M75540";
diagnosiscode[887] = "M75620";
diagnosiscode[888] = "M75630";
diagnosiscode[889] = "M75640";
diagnosiscode[890] = "M75660";
diagnosiscode[891] = "M75700";
diagnosiscode[892] = "M75720";
diagnosiscode[893] = "M75730";
diagnosiscode[894] = "M75740";
diagnosiscode[895] = "M75750";
diagnosiscode[896] = "M75760";
diagnosiscode[897] = "M75920";
diagnosiscode[898] = "M75930";
diagnosiscode[899] = "M75950";
diagnosiscode[900] = "M76000";
diagnosiscode[901] = "M76020";
diagnosiscode[902] = "M76050";
diagnosiscode[903] = "M76100";
diagnosiscode[904] = "M76120";
diagnosiscode[905] = "M76130";
diagnosiscode[906] = "M76220";
diagnosiscode[907] = "M76300";
diagnosiscode[908] = "M76310";
diagnosiscode[909] = "M76330";
diagnosiscode[910] = "M76400";
diagnosiscode[911] = "M76410";
diagnosiscode[912] = "M76500";
diagnosiscode[913] = "M76510";
diagnosiscode[914] = "M76540";
diagnosiscode[915] = "M76560";
diagnosiscode[916] = "M76600";
diagnosiscode[917] = "M76630";
diagnosiscode[918] = "M76660";
diagnosiscode[919] = "M76700";
diagnosiscode[920] = "M76720";
diagnosiscode[921] = "M76800";
diagnosiscode[922] = "M76810";
diagnosiscode[923] = "M76820";
diagnosiscode[924] = "M76840";
diagnosiscode[925] = "M76850";
diagnosiscode[926] = "M76860";
diagnosiscode[927] = "M77600";
diagnosiscode[928] = "M77800";
diagnosiscode[929] = "M77810";
diagnosiscode[930] = "M77910";
diagnosiscode[931] = "M77940";
diagnosiscode[932] = "M79000";
diagnosiscode[933] = "M79210";
diagnosiscode[934] = "M79300";
diagnosiscode[935] = "M79310";
diagnosiscode[936] = "M79320";
diagnosiscode[937] = "M79330";
diagnosiscode[938] = "M79340";
diagnosiscode[939] = "M79350";
diagnosiscode[940] = "M79360";
diagnosiscode[941] = "M79370";
diagnosiscode[942] = "M79410";
diagnosiscode[943] = "M79430";
diagnosiscode[944] = "M79440";
diagnosiscode[945] = "M79450";
diagnosiscode[946] = "M79460";
diagnosiscode[947] = "M79500";
diagnosiscode[948] = "M79510";
diagnosiscode[949] = "M79550";
diagnosiscode[950] = "M79590";
diagnosiscode[951] = "M79650";
diagnosiscode[952] = "M79690";
diagnosiscode[953] = "M79900";
diagnosiscode[954] = "M80000";
diagnosiscode[955] = "M80001";
diagnosiscode[956] = "M80003";
diagnosiscode[957] = "M80006";
diagnosiscode[958] = "M80009";
diagnosiscode[959] = "M80011";
diagnosiscode[960] = "M80013";
diagnosiscode[961] = "M80043";
diagnosiscode[962] = "M80100";
diagnosiscode[963] = "M80102";
diagnosiscode[964] = "M80103";
diagnosiscode[965] = "M80106";
diagnosiscode[966] = "M80109";
diagnosiscode[967] = "M80123";
diagnosiscode[968] = "M80126";
diagnosiscode[969] = "M80203";
diagnosiscode[970] = "M80206";
diagnosiscode[971] = "M80209";
diagnosiscode[972] = "M80213";
diagnosiscode[973] = "M80216";
diagnosiscode[974] = "M80313";
diagnosiscode[975] = "M80323";
diagnosiscode[976] = "M80333";
diagnosiscode[977] = "M80406";
diagnosiscode[978] = "M80413";
diagnosiscode[979] = "M80416";
diagnosiscode[980] = "M80423";
diagnosiscode[981] = "M80426";
diagnosiscode[982] = "M80500";
diagnosiscode[983] = "M80502";
diagnosiscode[984] = "M80503";
diagnosiscode[985] = "M80506";
diagnosiscode[986] = "M80513";
diagnosiscode[987] = "M80520";
diagnosiscode[988] = "M80530";
diagnosiscode[989] = "M80603";
diagnosiscode[990] = "M80702";
diagnosiscode[991] = "M80703";
diagnosiscode[992] = "M80704";
diagnosiscode[993] = "M80706";
diagnosiscode[994] = "M80707";
diagnosiscode[995] = "M80713";
diagnosiscode[996] = "M80715";
diagnosiscode[997] = "M80723";
diagnosiscode[998] = "M80726";
diagnosiscode[999] = "M80733";
diagnosiscode[1000] = "M80753";
diagnosiscode[1001] = "M80762";
diagnosiscode[1002] = "M80763";
diagnosiscode[1003] = "M80812";
diagnosiscode[1004] = "M80900";
diagnosiscode[1005] = "M80903";
diagnosiscode[1006] = "M80913";
diagnosiscode[1007] = "M80923";
diagnosiscode[1008] = "M80943";
diagnosiscode[1009] = "M81000";
diagnosiscode[1010] = "M81010";
diagnosiscode[1011] = "M81020";
diagnosiscode[1012] = "M81023";
diagnosiscode[1013] = "M81100";
diagnosiscode[1014] = "M81200";
diagnosiscode[1015] = "M81202";
diagnosiscode[1016] = "M81203";
diagnosiscode[1017] = "M81206";
diagnosiscode[1018] = "M81207";
diagnosiscode[1019] = "M81211";
diagnosiscode[1020] = "M81213";
diagnosiscode[1021] = "M81233";
diagnosiscode[1022] = "M81303";
diagnosiscode[1023] = "M81400";
diagnosiscode[1024] = "M81401";
diagnosiscode[1025] = "M81402";
diagnosiscode[1026] = "M81403";
diagnosiscode[1027] = "M81404";
diagnosiscode[1028] = "M81406";
diagnosiscode[1029] = "M81407";
diagnosiscode[1030] = "M81409";
diagnosiscode[1031] = "M81413";
diagnosiscode[1032] = "M81500";
diagnosiscode[1033] = "M81503";
diagnosiscode[1034] = "M81510";
diagnosiscode[1035] = "M81600";
diagnosiscode[1036] = "M81603";
diagnosiscode[1037] = "M81700";
diagnosiscode[1038] = "M81703";
diagnosiscode[1039] = "M81706";
diagnosiscode[1040] = "M81903";
diagnosiscode[1041] = "M82000";
diagnosiscode[1042] = "M82003";
diagnosiscode[1043] = "M82013";
diagnosiscode[1044] = "M82100";
diagnosiscode[1045] = "M82102";
diagnosiscode[1046] = "M82110";
diagnosiscode[1047] = "M82113";
diagnosiscode[1048] = "M82200";
diagnosiscode[1049] = "M82210";
diagnosiscode[1050] = "M82401";
diagnosiscode[1051] = "M82402";
diagnosiscode[1052] = "M82403";
diagnosiscode[1053] = "M82406";
diagnosiscode[1054] = "M82416";
diagnosiscode[1055] = "M82473";
diagnosiscode[1056] = "M82503";
diagnosiscode[1057] = "M82600";
diagnosiscode[1058] = "M82603";
diagnosiscode[1059] = "M82606";
diagnosiscode[1060] = "M82610";
diagnosiscode[1061] = "M82611";
diagnosiscode[1062] = "M82630";
diagnosiscode[1063] = "M82633";
diagnosiscode[1064] = "M82700";
diagnosiscode[1065] = "M82900";
diagnosiscode[1066] = "M82903";
diagnosiscode[1067] = "M83103";
diagnosiscode[1068] = "M83106";
diagnosiscode[1069] = "M83123";
diagnosiscode[1070] = "M83126";
diagnosiscode[1071] = "M83130";
diagnosiscode[1072] = "M83216";
diagnosiscode[1073] = "M8330";
diagnosiscode[1074] = "M83300";
diagnosiscode[1075] = "M83303";
diagnosiscode[1076] = "M83306";
diagnosiscode[1077] = "M83403";
diagnosiscode[1078] = "M83700";
diagnosiscode[1079] = "M83703";
diagnosiscode[1080] = "M83803";
diagnosiscode[1081] = "M83806";
diagnosiscode[1082] = "M83811";
diagnosiscode[1083] = "M83900";
diagnosiscode[1084] = "M83903";
diagnosiscode[1085] = "M84000";
diagnosiscode[1086] = "M84003";
diagnosiscode[1087] = "M84010";
diagnosiscode[1088] = "M84020";
diagnosiscode[1089] = "M84021";
diagnosiscode[1090] = "M84030";
diagnosiscode[1091] = "M84040";
diagnosiscode[1092] = "M84050";
diagnosiscode[1093] = "M84060";
diagnosiscode[1094] = "M84070";
diagnosiscode[1095] = "M84073";
diagnosiscode[1096] = "M84100";
diagnosiscode[1097] = "M84101";
diagnosiscode[1098] = "M84103";
diagnosiscode[1099] = "M84110";
diagnosiscode[1100] = "M84301";
diagnosiscode[1101] = "M84303";
diagnosiscode[1102] = "M84306";
diagnosiscode[1103] = "M84400";
diagnosiscode[1104] = "M84403";
diagnosiscode[1105] = "M84406";
diagnosiscode[1106] = "M84410";
diagnosiscode[1107] = "M84411";
diagnosiscode[1108] = "M84413";
diagnosiscode[1109] = "M84416";
diagnosiscode[1110] = "M84600";
diagnosiscode[1111] = "M84601";
diagnosiscode[1112] = "M84603";
diagnosiscode[1113] = "M84606";
diagnosiscode[1114] = "M84613";
diagnosiscode[1115] = "M84700";
diagnosiscode[1116] = "M84701";
diagnosiscode[1117] = "M84702";
diagnosiscode[1118] = "M84703";
diagnosiscode[1119] = "M84803";
diagnosiscode[1120] = "M84806";
diagnosiscode[1121] = "M84903";
diagnosiscode[1122] = "M84906";
diagnosiscode[1123] = "M85002";
diagnosiscode[1124] = "M85003";
diagnosiscode[1125] = "M85006";
diagnosiscode[1126] = "M85007";
diagnosiscode[1127] = "M85009";
diagnosiscode[1128] = "M85012";
diagnosiscode[1129] = "M85013";
diagnosiscode[1130] = "M85030";
diagnosiscode[1131] = "M85031";
diagnosiscode[1132] = "M85032";
diagnosiscode[1133] = "M85033";
diagnosiscode[1134] = "M85042";
diagnosiscode[1135] = "M85050";
diagnosiscode[1136] = "M85060";
diagnosiscode[1137] = "M85103";
diagnosiscode[1138] = "M85106";
diagnosiscode[1139] = "M85113";
diagnosiscode[1140] = "M85202";
diagnosiscode[1141] = "M85203";
diagnosiscode[1142] = "M85206";
diagnosiscode[1143] = "M85213";
diagnosiscode[1144] = "M85216";
diagnosiscode[1145] = "M85243";
diagnosiscode[1146] = "M85403";
diagnosiscode[1147] = "M85423";
diagnosiscode[1148] = "M85501";
diagnosiscode[1149] = "M85503";
diagnosiscode[1150] = "M85603";
diagnosiscode[1151] = "M85606";
diagnosiscode[1152] = "M85610";
diagnosiscode[1153] = "M85703";
diagnosiscode[1154] = "M85706";
diagnosiscode[1155] = "M85800";
diagnosiscode[1156] = "M85803";
diagnosiscode[1157] = "M85851";
diagnosiscode[1158] = "M86000";
diagnosiscode[1159] = "M86201";
diagnosiscode[1160] = "M86206";
diagnosiscode[1161] = "M86400";
diagnosiscode[1162] = "M86501";
diagnosiscode[1163] = "M86801";
diagnosiscode[1164] = "M86921";
diagnosiscode[1165] = "M86931";
diagnosiscode[1166] = "M87000";
diagnosiscode[1167] = "M87110";
diagnosiscode[1168] = "M87120";
diagnosiscode[1169] = "M87200";
diagnosiscode[1170] = "M87201";
diagnosiscode[1171] = "M87202";
diagnosiscode[1172] = "M87203";
diagnosiscode[1173] = "M87206";
diagnosiscode[1174] = "M87209";
diagnosiscode[1175] = "M87213";
diagnosiscode[1176] = "M87220";
diagnosiscode[1177] = "M87230";
diagnosiscode[1178] = "M87303";
diagnosiscode[1179] = "M87400";
diagnosiscode[1180] = "M87401";
diagnosiscode[1181] = "M87403";
diagnosiscode[1182] = "M87413";
diagnosiscode[1183] = "M87422";
diagnosiscode[1184] = "M87423";
diagnosiscode[1185] = "M87432";
diagnosiscode[1186] = "M87433";
diagnosiscode[1187] = "M87453";
diagnosiscode[1188] = "M87500";
diagnosiscode[1189] = "M87600";
diagnosiscode[1190] = "M87601";
diagnosiscode[1191] = "M87611";
diagnosiscode[1192] = "M87700";
diagnosiscode[1193] = "M87703";
diagnosiscode[1194] = "M87800";
diagnosiscode[1195] = "M87900";
diagnosiscode[1196] = "M88000";
diagnosiscode[1197] = "M88003";
diagnosiscode[1198] = "M88006";
diagnosiscode[1199] = "M88100";
diagnosiscode[1200] = "M88103";
diagnosiscode[1201] = "M88110";
diagnosiscode[1202] = "M88200";
diagnosiscode[1203] = "M88211";
diagnosiscode[1204] = "M88221";
diagnosiscode[1205] = "M88250";
diagnosiscode[1206] = "M88300";
diagnosiscode[1207] = "M88303";
diagnosiscode[1208] = "M88306";
diagnosiscode[1209] = "M88310";
diagnosiscode[1210] = "M88311";
diagnosiscode[1211] = "M88320";
diagnosiscode[1212] = "M88323";
diagnosiscode[1213] = "M88400";
diagnosiscode[1214] = "M88500";
diagnosiscode[1215] = "M88503";
diagnosiscode[1216] = "M88506";
diagnosiscode[1217] = "M88510";
diagnosiscode[1218] = "M88543";
diagnosiscode[1219] = "M88570";
diagnosiscode[1220] = "M88600";
diagnosiscode[1221] = "M88610";
diagnosiscode[1222] = "M88700";
diagnosiscode[1223] = "M88800";
diagnosiscode[1224] = "M88900";
diagnosiscode[1225] = "M88901";
diagnosiscode[1226] = "M88903";
diagnosiscode[1227] = "M88906";
diagnosiscode[1228] = "M88910";
diagnosiscode[1229] = "M88911";
diagnosiscode[1230] = "M88921";
diagnosiscode[1231] = "M88930";
diagnosiscode[1232] = "M88940";
diagnosiscode[1233] = "M89003";
diagnosiscode[1234] = "M89303";
diagnosiscode[1235] = "M89306";
diagnosiscode[1236] = "M89311";
diagnosiscode[1237] = "M89320";
diagnosiscode[1238] = "M89400";
diagnosiscode[1239] = "M89403";
diagnosiscode[1240] = "M89500";
diagnosiscode[1241] = "M89503";
diagnosiscode[1242] = "M89513";
diagnosiscode[1243] = "M89803";
diagnosiscode[1244] = "M89806";
diagnosiscode[1245] = "M89820";
diagnosiscode[1246] = "M90000";
diagnosiscode[1247] = "M90001";
diagnosiscode[1248] = "M90100";
diagnosiscode[1249] = "M90130";
diagnosiscode[1250] = "M90140";
diagnosiscode[1251] = "M90200";
diagnosiscode[1252] = "M90201";
diagnosiscode[1253] = "M90203";
diagnosiscode[1254] = "M90403";
diagnosiscode[1255] = "M90500";
diagnosiscode[1256] = "M90503";
diagnosiscode[1257] = "M90513";
diagnosiscode[1258] = "M90540";
diagnosiscode[1259] = "M90583";
diagnosiscode[1260] = "M90603";
diagnosiscode[1261] = "M90613";
diagnosiscode[1262] = "M90616";
diagnosiscode[1263] = "M90703";
diagnosiscode[1264] = "M90706";
diagnosiscode[1265] = "M90713";
diagnosiscode[1266] = "M90731";
diagnosiscode[1267] = "M90800";
diagnosiscode[1268] = "M90801";
diagnosiscode[1269] = "M90803";
diagnosiscode[1270] = "M90806";
diagnosiscode[1271] = "M90840";
diagnosiscode[1272] = "M90900";
diagnosiscode[1273] = "M91000";
diagnosiscode[1274] = "M91001";
diagnosiscode[1275] = "M91003";
diagnosiscode[1276] = "M91006";
diagnosiscode[1277] = "M91103";
diagnosiscode[1278] = "M91200";
diagnosiscode[1279] = "M91203";
diagnosiscode[1280] = "M91210";
diagnosiscode[1281] = "M91301";
diagnosiscode[1282] = "M91303";
diagnosiscode[1283] = "M91310";
diagnosiscode[1284] = "M91333";
diagnosiscode[1285] = "M91403";
diagnosiscode[1286] = "M91410";
diagnosiscode[1287] = "M91501";
diagnosiscode[1288] = "M91600";
diagnosiscode[1289] = "M91611";
diagnosiscode[1290] = "M91700";
diagnosiscode[1291] = "M91730";
diagnosiscode[1292] = "M91800";
diagnosiscode[1293] = "M91803";
diagnosiscode[1294] = "M91910";
diagnosiscode[1295] = "M92000";
diagnosiscode[1296] = "M92100";
diagnosiscode[1297] = "M92200";
diagnosiscode[1298] = "M92203";
diagnosiscode[1299] = "M92300";
diagnosiscode[1300] = "M92501";
diagnosiscode[1301] = "M92603";
diagnosiscode[1302] = "M92720";
diagnosiscode[1303] = "M93100";
diagnosiscode[1304] = "M93501";
diagnosiscode[1305] = "M93703";
diagnosiscode[1306] = "M93803";
diagnosiscode[1307] = "M93823";
diagnosiscode[1308] = "M93831";
diagnosiscode[1309] = "M93913";
diagnosiscode[1310] = "M94003";
diagnosiscode[1311] = "M94113";
diagnosiscode[1312] = "M94203";
diagnosiscode[1313] = "M94403";
diagnosiscode[1314] = "M94503";
diagnosiscode[1315] = "M94900";
diagnosiscode[1316] = "M95300";
diagnosiscode[1317] = "M95400";
diagnosiscode[1318] = "M95401";
diagnosiscode[1319] = "M95500";
diagnosiscode[1320] = "M95600";
diagnosiscode[1321] = "M95620";
diagnosiscode[1322] = "M95700";
diagnosiscode[1323] = "M95750";
diagnosiscode[1324] = "M95800";
diagnosiscode[1325] = "M95803";
diagnosiscode[1326] = "M95903";
diagnosiscode[1327] = "M95906";
diagnosiscode[1328] = "M95913";
diagnosiscode[1329] = "M95916";
diagnosiscode[1330] = "M95953";
diagnosiscode[1331] = "M96003";
diagnosiscode[1332] = "M96023";
diagnosiscode[1333] = "M96123";
diagnosiscode[1334] = "M96126";
diagnosiscode[1335] = "M96133";
diagnosiscode[1336] = "M96203";
diagnosiscode[1337] = "M96213";
diagnosiscode[1338] = "M96223";
diagnosiscode[1339] = "M96303";
diagnosiscode[1340] = "M96403";
diagnosiscode[1341] = "M96406";
diagnosiscode[1342] = "M96413";
diagnosiscode[1343] = "M96423";
diagnosiscode[1344] = "M96503";
diagnosiscode[1345] = "M96506";
diagnosiscode[1346] = "M96513";
diagnosiscode[1347] = "M96523";
diagnosiscode[1348] = "M96563";
diagnosiscode[1349] = "M96633";
diagnosiscode[1350] = "M96643";
diagnosiscode[1351] = "M96663";
diagnosiscode[1352] = "M96703";
diagnosiscode[1353] = "M96723";
diagnosiscode[1354] = "M96733";
diagnosiscode[1355] = "M96743";
diagnosiscode[1356] = "M96753";
diagnosiscode[1357] = "M96763";
diagnosiscode[1358] = "M96803";
diagnosiscode[1359] = "M96820";
diagnosiscode[1360] = "M96823";
diagnosiscode[1361] = "M96843";
diagnosiscode[1362] = "M96853";
diagnosiscode[1363] = "M96873";
diagnosiscode[1364] = "M96893";
diagnosiscode[1365] = "M96903";
diagnosiscode[1366] = "M96905";
diagnosiscode[1367] = "M96913";
diagnosiscode[1368] = "M96923";
diagnosiscode[1369] = "M96933";
diagnosiscode[1370] = "M96943";
diagnosiscode[1371] = "M96953";
diagnosiscode[1372] = "M96963";
diagnosiscode[1373] = "M96983";
diagnosiscode[1374] = "M97003";
diagnosiscode[1375] = "M97013";
diagnosiscode[1376] = "M97023";
diagnosiscode[1377] = "M97033";
diagnosiscode[1378] = "M97053";
diagnosiscode[1379] = "M97063";
diagnosiscode[1380] = "M97143";
diagnosiscode[1381] = "M97203";
diagnosiscode[1382] = "M97303";
diagnosiscode[1383] = "M97306";
diagnosiscode[1384] = "M97311";
diagnosiscode[1385] = "M97503";
diagnosiscode[1386] = "M97613";
diagnosiscode[1387] = "M98003";
diagnosiscode[1388] = "M98006";
diagnosiscode[1389] = "M98013";
diagnosiscode[1390] = "M98033";
diagnosiscode[1391] = "M98043";
diagnosiscode[1392] = "M98203";
diagnosiscode[1393] = "M98213";
diagnosiscode[1394] = "M98233";
diagnosiscode[1395] = "M98253";
diagnosiscode[1396] = "M98353";
diagnosiscode[1397] = "M98403";
diagnosiscode[1398] = "M98603";
diagnosiscode[1399] = "M98613";
diagnosiscode[1400] = "M98633";
diagnosiscode[1401] = "M98663";
diagnosiscode[1402] = "M98673";
diagnosiscode[1403] = "M98803";
diagnosiscode[1404] = "M98903";
diagnosiscode[1405] = "M99303";
diagnosiscode[1406] = "M99403";
diagnosiscode[1407] = "M99501";
diagnosiscode[1408] = "M99600";
diagnosiscode[1409] = "M99601";
diagnosiscode[1410] = "M99602";
diagnosiscode[1411] = "M99603";
diagnosiscode[1412] = "M99611";
diagnosiscode[1413] = "M99621";
diagnosiscode[1414] = "M99701";
diagnosiscode[1415] = "MD6216";
diagnosiscode[1416] = "ME1370";
diagnosiscode[1417] = "ME8508";
diagnosiscode[1418] = "MF3110";
diagnosiscode[1419] = "NEG";
diagnosiscode[1420] = "O1";
diagnosiscode[1421] = "O2";
diagnosiscode[1422] = "O3";
diagnosiscode[1423] = "O6";
diagnosiscode[1424] = "ON";
diagnosiscode[1425] = "P1041";
diagnosiscode[1426] = "P1145";
diagnosiscode[1427] = "P11450";
diagnosiscode[1428] = "R0";
diagnosiscode[1429] = "R1";
diagnosiscode[1430] = "R2";
diagnosiscode[1431] = "R3";
diagnosiscode[1432] = "R4";
diagnosiscode[1433] = "R5";
diagnosiscode[1434] = "R6B";
diagnosiscode[1435] = "R6C";
diagnosiscode[1436] = "R6D";
diagnosiscode[1437] = "R6E";
diagnosiscode[1438] = "R7";
diagnosiscode[1439] = "R8";
diagnosiscode[1440] = "R9";
diagnosiscode[1441] = "S0";
diagnosiscode[1442] = "S1";
diagnosiscode[1443] = "S2";
diagnosiscode[1444] = "S3";
diagnosiscode[1445] = "S4";
diagnosiscode[1446] = "S5";
diagnosiscode[1447] = "S6";
diagnosiscode[1448] = "S7";
diagnosiscode[1449] = "S8";
diagnosiscode[1450] = "S9";
diagnosiscode[1451] = "SN";
diagnosiscode[1452] = "T00001";
diagnosiscode[1453] = "T00010";
diagnosiscode[1454] = "T00100";
diagnosiscode[1455] = "T01000";
diagnosiscode[1456] = "T01300";
diagnosiscode[1457] = "T01310";
diagnosiscode[1458] = "T01330";
diagnosiscode[1459] = "T01400";
diagnosiscode[1460] = "T01600";
diagnosiscode[1461] = "T01619";
diagnosiscode[1462] = "T02000";
diagnosiscode[1463] = "T02100";
diagnosiscode[1464] = "T02102";
diagnosiscode[1465] = "T02120";
diagnosiscode[1466] = "T02121";
diagnosiscode[1467] = "T02130";
diagnosiscode[1468] = "T02140";
diagnosiscode[1469] = "T02150";
diagnosiscode[1470] = "T02200";
diagnosiscode[1471] = "T02300";
diagnosiscode[1472] = "T02400";
diagnosiscode[1473] = "T02401";
diagnosiscode[1474] = "T02402";
diagnosiscode[1475] = "T02424";
diagnosiscode[1476] = "T02450";
diagnosiscode[1477] = "T02480";
diagnosiscode[1478] = "T02483";
diagnosiscode[1479] = "T02500";
diagnosiscode[1480] = "T02530";
diagnosiscode[1481] = "T02600";
diagnosiscode[1482] = "T02610";
diagnosiscode[1483] = "T02630";
diagnosiscode[1484] = "T02800";
diagnosiscode[1485] = "T02810";
diagnosiscode[1486] = "T02830";
diagnosiscode[1487] = "T02840";
diagnosiscode[1488] = "T02850";
diagnosiscode[1489] = "T03000";
diagnosiscode[1490] = "T03300";
diagnosiscode[1491] = "T03401";
diagnosiscode[1492] = "T03487";
diagnosiscode[1493] = "T04000";
diagnosiscode[1494] = "T04004";
diagnosiscode[1495] = "T04010";
diagnosiscode[1496] = "T04020";
diagnosiscode[1497] = "T04030";
diagnosiscode[1498] = "T04035";
diagnosiscode[1499] = "T04040";
diagnosiscode[1500] = "T04050";
diagnosiscode[1501] = "T04060";
diagnosiscode[1502] = "T04100";
diagnosiscode[1503] = "T04200";
diagnosiscode[1504] = "T04280";
diagnosiscode[1505] = "T04300";
diagnosiscode[1506] = "T04800";
diagnosiscode[1507] = "T04840";
diagnosiscode[1508] = "T04920";
diagnosiscode[1509] = "T06000";
diagnosiscode[1510] = "T06002";
diagnosiscode[1511] = "T06100";
diagnosiscode[1512] = "T06200";
diagnosiscode[1513] = "T06540";
diagnosiscode[1514] = "T06620";
diagnosiscode[1515] = "T07000";
diagnosiscode[1516] = "T08000";
diagnosiscode[1517] = "T08100";
diagnosiscode[1518] = "T08160";
diagnosiscode[1519] = "T08200";
diagnosiscode[1520] = "T08220";
diagnosiscode[1521] = "T08360";
diagnosiscode[1522] = "T08400";
diagnosiscode[1523] = "T08410";
diagnosiscode[1524] = "T08480";
diagnosiscode[1525] = "T08510";
diagnosiscode[1526] = "T08580";
diagnosiscode[1527] = "T08710";
diagnosiscode[1528] = "T08810";
diagnosiscode[1529] = "T0X000";
diagnosiscode[1530] = "T0Y200";
diagnosiscode[1531] = "T0Y400";
diagnosiscode[1532] = "T10000";
diagnosiscode[1533] = "T10020";
diagnosiscode[1534] = "T10101";
diagnosiscode[1535] = "T10170";
diagnosiscode[1536] = "T10180";
diagnosiscode[1537] = "T10310";
diagnosiscode[1538] = "T10350";
diagnosiscode[1539] = "T10357";
diagnosiscode[1540] = "T10360";
diagnosiscode[1541] = "T10500";
diagnosiscode[1542] = "T10510";
diagnosiscode[1543] = "T10728";
diagnosiscode[1544] = "T10750";
diagnosiscode[1545] = "T10758";
diagnosiscode[1546] = "T10760";
diagnosiscode[1547] = "T10770";
diagnosiscode[1548] = "T10784";
diagnosiscode[1549] = "T10800";
diagnosiscode[1550] = "T10830";
diagnosiscode[1551] = "T11000";
diagnosiscode[1552] = "T11340";
diagnosiscode[1553] = "T11380";
diagnosiscode[1554] = "T11390";
diagnosiscode[1555] = "T11410";
diagnosiscode[1556] = "T11420";
diagnosiscode[1557] = "T11430";
diagnosiscode[1558] = "T11500";
diagnosiscode[1559] = "T11600";
diagnosiscode[1560] = "T11700";
diagnosiscode[1561] = "T11710";
diagnosiscode[1562] = "T11711";
diagnosiscode[1563] = "T11712";
diagnosiscode[1564] = "T11720";
diagnosiscode[1565] = "T11730";
diagnosiscode[1566] = "T11740";
diagnosiscode[1567] = "T11755";
diagnosiscode[1568] = "T11810";
diagnosiscode[1569] = "T11918";
diagnosiscode[1570] = "T12000";
diagnosiscode[1571] = "T12013";
diagnosiscode[1572] = "T12020";
diagnosiscode[1573] = "T12040";
diagnosiscode[1574] = "T12103";
diagnosiscode[1575] = "T12130";
diagnosiscode[1576] = "T12290";
diagnosiscode[1577] = "T12292";
diagnosiscode[1578] = "T12341";
diagnosiscode[1579] = "T12460";
diagnosiscode[1580] = "T12515";
diagnosiscode[1581] = "T12610";
diagnosiscode[1582] = "T12710";
diagnosiscode[1583] = "T12720";
diagnosiscode[1584] = "T12722";
diagnosiscode[1585] = "T12723";
diagnosiscode[1586] = "T13000";
diagnosiscode[1587] = "T13660";
diagnosiscode[1588] = "T14000";
diagnosiscode[1589] = "T14200";
diagnosiscode[1590] = "T14260";
diagnosiscode[1591] = "T14412";
diagnosiscode[1592] = "T14550";
diagnosiscode[1593] = "T15000";
diagnosiscode[1594] = "T16000";
diagnosiscode[1595] = "T17000";
diagnosiscode[1596] = "T17010";
diagnosiscode[1597] = "T17050";
diagnosiscode[1598] = "T18010";
diagnosiscode[1599] = "T18600";
diagnosiscode[1600] = "T18845";
diagnosiscode[1601] = "T18948";
diagnosiscode[1602] = "T1X000";
diagnosiscode[1603] = "T1X010";
diagnosiscode[1604] = "T1X030";
diagnosiscode[1605] = "T1X500";
diagnosiscode[1606] = "T1X700";
diagnosiscode[1607] = "T1Y000";
diagnosiscode[1608] = "T1Y010";
diagnosiscode[1609] = "T20000";
diagnosiscode[1610] = "T20100";
diagnosiscode[1611] = "T21000";
diagnosiscode[1612] = "T21010";
diagnosiscode[1613] = "T21150";
diagnosiscode[1614] = "T22000";
diagnosiscode[1615] = "T23000";
diagnosiscode[1616] = "T24000";
diagnosiscode[1617] = "T24030";
diagnosiscode[1618] = "T24100";
diagnosiscode[1619] = "T24400";
diagnosiscode[1620] = "T24420";
diagnosiscode[1621] = "T24440";
diagnosiscode[1622] = "T25000";
diagnosiscode[1623] = "T26000";
diagnosiscode[1624] = "T26970";
diagnosiscode[1625] = "T27000";
diagnosiscode[1626] = "T27412";
diagnosiscode[1627] = "T28000";
diagnosiscode[1628] = "T28080";
diagnosiscode[1629] = "T28100";
diagnosiscode[1630] = "T28200";
diagnosiscode[1631] = "T28400";
diagnosiscode[1632] = "T28500";
diagnosiscode[1633] = "T28600";
diagnosiscode[1634] = "T28610";
diagnosiscode[1635] = "T28780";
diagnosiscode[1636] = "T29000";
diagnosiscode[1637] = "T29100";
diagnosiscode[1638] = "T29200";
diagnosiscode[1639] = "T2X030";
diagnosiscode[1640] = "T2X111";
diagnosiscode[1641] = "T2Y030";
diagnosiscode[1642] = "T2Y100";
diagnosiscode[1643] = "T2Y210";
diagnosiscode[1644] = "T2Y310";
diagnosiscode[1645] = "T2Y410";
diagnosiscode[1646] = "T2Y412";
diagnosiscode[1647] = "T2Y414";
diagnosiscode[1648] = "T2Y420";
diagnosiscode[1649] = "T2Y600";
diagnosiscode[1650] = "T2Y610";
diagnosiscode[1651] = "T31000";
diagnosiscode[1652] = "T32000";
diagnosiscode[1653] = "T32310";
diagnosiscode[1654] = "T33010";
diagnosiscode[1655] = "T34000";
diagnosiscode[1656] = "T35000";
diagnosiscode[1657] = "T36000";
diagnosiscode[1658] = "T38000";
diagnosiscode[1659] = "T39000";
diagnosiscode[1660] = "T39900";
diagnosiscode[1661] = "T3X000";
diagnosiscode[1662] = "T3X110";
diagnosiscode[1663] = "T40000";
diagnosiscode[1664] = "T41000";
diagnosiscode[1665] = "T41931";
diagnosiscode[1666] = "T42000";
diagnosiscode[1667] = "T42050";
diagnosiscode[1668] = "T43000";
diagnosiscode[1669] = "T45000";
diagnosiscode[1670] = "T45010";
diagnosiscode[1671] = "T45100";
diagnosiscode[1672] = "T45270";
diagnosiscode[1673] = "T45300";
diagnosiscode[1674] = "T45648";
diagnosiscode[1675] = "T46500";
diagnosiscode[1676] = "T46670";
diagnosiscode[1677] = "T46700";
diagnosiscode[1678] = "T47160";
diagnosiscode[1679] = "T47400";
diagnosiscode[1680] = "T47500";
diagnosiscode[1681] = "T48000";
diagnosiscode[1682] = "T49400";
diagnosiscode[1683] = "T49530";
diagnosiscode[1684] = "T49620";
diagnosiscode[1685] = "T50010";
diagnosiscode[1686] = "T50135";
diagnosiscode[1687] = "T50500";
diagnosiscode[1688] = "T51000";
diagnosiscode[1689] = "T51003";
diagnosiscode[1690] = "T51100";
diagnosiscode[1691] = "T51110";
diagnosiscode[1692] = "T51130";
diagnosiscode[1693] = "T51200";
diagnosiscode[1694] = "T51500";
diagnosiscode[1695] = "T52000";
diagnosiscode[1696] = "T52100";
diagnosiscode[1697] = "T52900";
diagnosiscode[1698] = "T53000";
diagnosiscode[1699] = "T53130";
diagnosiscode[1700] = "T54000";
diagnosiscode[1701] = "T54010";
diagnosiscode[1702] = "T54910";
diagnosiscode[1703] = "T55000";
diagnosiscode[1704] = "T55100";
diagnosiscode[1705] = "T55110";
diagnosiscode[1706] = "T55200";
diagnosiscode[1707] = "T55300";
diagnosiscode[1708] = "T55400";
diagnosiscode[1709] = "T554OO";
diagnosiscode[1710] = "T56000";
diagnosiscode[1711] = "T56320";
diagnosiscode[1712] = "T57000";
diagnosiscode[1713] = "T57100";
diagnosiscode[1714] = "T58000";
diagnosiscode[1715] = "T58400";
diagnosiscode[1716] = "T58500";
diagnosiscode[1717] = "T58700";
diagnosiscode[1718] = "T59000";
diagnosiscode[1719] = "T59100";
diagnosiscode[1720] = "T59300";
diagnosiscode[1721] = "T5Y010";
diagnosiscode[1722] = "T5Y200";
diagnosiscode[1723] = "T5Y300";
diagnosiscode[1724] = "T5Y410";
diagnosiscode[1725] = "T60000";
diagnosiscode[1726] = "T61000";
diagnosiscode[1727] = "T61100";
diagnosiscode[1728] = "T61110";
diagnosiscode[1729] = "T61300";
diagnosiscode[1730] = "T62000";
diagnosiscode[1731] = "T62200";
diagnosiscode[1732] = "T62310";
diagnosiscode[1733] = "T62350";
diagnosiscode[1734] = "T63000";
diagnosiscode[1735] = "T63700";
diagnosiscode[1736] = "T63850";
diagnosiscode[1737] = "T63860";
diagnosiscode[1738] = "T64000";
diagnosiscode[1739] = "T64200";
diagnosiscode[1740] = "T64300";
diagnosiscode[1741] = "T64910";
diagnosiscode[1742] = "T65000";
diagnosiscode[1743] = "T65100";
diagnosiscode[1744] = "T65200";
diagnosiscode[1745] = "T65600";
diagnosiscode[1746] = "T66000";
diagnosiscode[1747] = "T67000";
diagnosiscode[1748] = "T67060";
diagnosiscode[1749] = "T67100";
diagnosiscode[1750] = "T67200";
diagnosiscode[1751] = "T67400";
diagnosiscode[1752] = "T67600";
diagnosiscode[1753] = "T67700";
diagnosiscode[1754] = "T67800";
diagnosiscode[1755] = "T67950";
diagnosiscode[1756] = "T67965";
diagnosiscode[1757] = "T67995";
diagnosiscode[1758] = "T68000";
diagnosiscode[1759] = "T69000";
diagnosiscode[1760] = "T69200";
diagnosiscode[1761] = "T69900";
diagnosiscode[1762] = "T6X000";
diagnosiscode[1763] = "T6X110";
diagnosiscode[1764] = "T6X210";
diagnosiscode[1765] = "T6X300";
diagnosiscode[1766] = "T6X310";
diagnosiscode[1767] = "T6X410";
diagnosiscode[1768] = "T6X510";
diagnosiscode[1769] = "T6X710";
diagnosiscode[1770] = "T6X810";
diagnosiscode[1771] = "T6X910";
diagnosiscode[1772] = "T6X930";
diagnosiscode[1773] = "T6X940";
diagnosiscode[1774] = "T6Y000";
diagnosiscode[1775] = "T6Y020";
diagnosiscode[1776] = "T71000";
diagnosiscode[1777] = "T71010";
diagnosiscode[1778] = "T71020";
diagnosiscode[1779] = "T71040";
diagnosiscode[1780] = "T71200";
diagnosiscode[1781] = "T71230";
diagnosiscode[1782] = "T71240";
diagnosiscode[1783] = "T71290";
diagnosiscode[1784] = "T71300";
diagnosiscode[1785] = "T71360";
diagnosiscode[1786] = "T71900";
diagnosiscode[1787] = "T72000";
diagnosiscode[1788] = "T72900";
diagnosiscode[1789] = "T73000";
diagnosiscode[1790] = "T73003";
diagnosiscode[1791] = "T73010";
diagnosiscode[1792] = "T73020";
diagnosiscode[1793] = "T74000";
diagnosiscode[1794] = "T75000";
diagnosiscode[1795] = "T75180";
diagnosiscode[1796] = "T76000";
diagnosiscode[1797] = "T76300";
diagnosiscode[1798] = "T76330";
diagnosiscode[1799] = "T77000";
diagnosiscode[1800] = "T77100";
diagnosiscode[1801] = "T77500";
diagnosiscode[1802] = "T78000";
diagnosiscode[1803] = "T78010";
diagnosiscode[1804] = "T78020";
diagnosiscode[1805] = "T78210";
diagnosiscode[1806] = "T78400";
diagnosiscode[1807] = "T78800";
diagnosiscode[1808] = "T79000";
diagnosiscode[1809] = "T79100";
diagnosiscode[1810] = "T79140";
diagnosiscode[1811] = "T79180";
diagnosiscode[1812] = "T79181";
diagnosiscode[1813] = "T79200";
diagnosiscode[1814] = "T79210";
diagnosiscode[1815] = "T79220";
diagnosiscode[1816] = "T79400";
diagnosiscode[1817] = "T79800";
diagnosiscode[1818] = "T7X100";
diagnosiscode[1819] = "T7X200";
diagnosiscode[1820] = "T7X210";
diagnosiscode[1821] = "T7X300";
diagnosiscode[1822] = "T7X310";
diagnosiscode[1823] = "T7X400";
diagnosiscode[1824] = "T7X410";
diagnosiscode[1825] = "T7X510";
diagnosiscode[1826] = "T80000";
diagnosiscode[1827] = "T80100";
diagnosiscode[1828] = "T80103";
diagnosiscode[1829] = "T80400";
diagnosiscode[1830] = "T80500";
diagnosiscode[1831] = "T81000";
diagnosiscode[1832] = "T81110";
diagnosiscode[1833] = "T81400";
diagnosiscode[1834] = "T82000";
diagnosiscode[1835] = "T82200";
diagnosiscode[1836] = "T82610";
diagnosiscode[1837] = "T82900";
diagnosiscode[1838] = "T82910";
diagnosiscode[1839] = "T82920";
diagnosiscode[1840] = "T82921";
diagnosiscode[1841] = "T82922";
diagnosiscode[1842] = "T83000";
diagnosiscode[1843] = "T83100";
diagnosiscode[1844] = "T83110";
diagnosiscode[1845] = "T83300";
diagnosiscode[1846] = "T83320";
diagnosiscode[1847] = "T84000";
diagnosiscode[1848] = "T85000";
diagnosiscode[1849] = "T86000";
diagnosiscode[1850] = "T86100";
diagnosiscode[1851] = "T86110";
diagnosiscode[1852] = "T86120";
diagnosiscode[1853] = "T86220";
diagnosiscode[1854] = "T86300";
diagnosiscode[1855] = "T86800";
diagnosiscode[1856] = "T86970";
diagnosiscode[1857] = "T87000";
diagnosiscode[1858] = "T87010";
diagnosiscode[1859] = "T87020";
diagnosiscode[1860] = "T87070";
diagnosiscode[1861] = "T87670";
diagnosiscode[1862] = "T87800";
diagnosiscode[1863] = "T88000";
diagnosiscode[1864] = "T88100";
diagnosiscode[1865] = "T88110";
diagnosiscode[1866] = "T88200";
diagnosiscode[1867] = "T88220";
diagnosiscode[1868] = "T88300";
diagnosiscode[1869] = "T88700";
diagnosiscode[1870] = "T88800";
diagnosiscode[1871] = "T88900";
diagnosiscode[1872] = "T89000";
diagnosiscode[1873] = "T89001";
diagnosiscode[1874] = "T89010";
diagnosiscode[1875] = "T89110";
diagnosiscode[1876] = "T89500";
diagnosiscode[1877] = "T89904";
diagnosiscode[1878] = "T8X110";
diagnosiscode[1879] = "T8X210";
diagnosiscode[1880] = "T8X310";
diagnosiscode[1881] = "T8X320";
diagnosiscode[1882] = "T8X430";
diagnosiscode[1883] = "T8X510";
diagnosiscode[1884] = "T8X640";
diagnosiscode[1885] = "T8X940";
diagnosiscode[1886] = "T8Y210";
diagnosiscode[1887] = "T8Y300";
diagnosiscode[1888] = "T8Y310";
diagnosiscode[1889] = "T91000";
diagnosiscode[1890] = "T92000";
diagnosiscode[1891] = "T93000";
diagnosiscode[1892] = "T93010";
diagnosiscode[1893] = "T93020";
diagnosiscode[1894] = "T93100";
diagnosiscode[1895] = "T93200";
diagnosiscode[1896] = "T94000";
diagnosiscode[1897] = "T95000";
diagnosiscode[1898] = "T96000";
diagnosiscode[1899] = "T96100";
diagnosiscode[1900] = "T96200";
diagnosiscode[1901] = "T96300";
diagnosiscode[1902] = "T96500";
diagnosiscode[1903] = "T97000";
diagnosiscode[1904] = "T97200";
diagnosiscode[1905] = "T97300";
diagnosiscode[1906] = "T97400";
diagnosiscode[1907] = "T97800";
diagnosiscode[1908] = "T98000";
diagnosiscode[1909] = "T99000";
diagnosiscode[1910] = "TX0000";
diagnosiscode[1911] = "TX0500";
diagnosiscode[1912] = "TX1000";
diagnosiscode[1913] = "TX1010";
diagnosiscode[1914] = "TX1110";
diagnosiscode[1915] = "TX1120";
diagnosiscode[1916] = "TX1280";
diagnosiscode[1917] = "TX1300";
diagnosiscode[1918] = "TX1400";
diagnosiscode[1919] = "TX1500";
diagnosiscode[1920] = "TX2000";
diagnosiscode[1921] = "TX2020";
diagnosiscode[1922] = "TX2200";
diagnosiscode[1923] = "TX2300";
diagnosiscode[1924] = "TX2303";
diagnosiscode[1925] = "TX2400";
diagnosiscode[1926] = "TX2500";
diagnosiscode[1927] = "TX4430";
diagnosiscode[1928] = "TX6000";
diagnosiscode[1929] = "TX7410";
diagnosiscode[1930] = "TX8000";
diagnosiscode[1931] = "TX8640";
diagnosiscode[1932] = "TX8774";
diagnosiscode[1933] = "TX8775";
diagnosiscode[1934] = "TX9000";
diagnosiscode[1935] = "TX9001";
diagnosiscode[1936] = "TX9611";
diagnosiscode[1937] = "TX9630";
diagnosiscode[1938] = "TX9640";
diagnosiscode[1939] = "TX9760";
diagnosiscode[1940] = "TX9790";
diagnosiscode[1941] = "TX9810";
diagnosiscode[1942] = "TXX000";
diagnosiscode[1943] = "TXX010";
diagnosiscode[1944] = "TXX020";
diagnosiscode[1945] = "TXX087";
diagnosiscode[1946] = "TXX088";
diagnosiscode[1947] = "TXX200";
diagnosiscode[1948] = "TXX310";
diagnosiscode[1949] = "TXX700";
diagnosiscode[1950] = "TXX810";
diagnosiscode[1951] = "TXX850";
diagnosiscode[1952] = "TXX860";
diagnosiscode[1953] = "TXX880";
diagnosiscode[1954] = "TXY000";
diagnosiscode[1955] = "TXY100";
diagnosiscode[1956] = "TXY101";
diagnosiscode[1957] = "TXY102";
diagnosiscode[1958] = "TXY110";
diagnosiscode[1959] = "TXY200";
diagnosiscode[1960] = "TXY300";
diagnosiscode[1961] = "TXY320";
diagnosiscode[1962] = "TXY510";
diagnosiscode[1963] = "TXY520";
diagnosiscode[1964] = "TY0110";
diagnosiscode[1965] = "TY0160";
diagnosiscode[1966] = "TY0171";
diagnosiscode[1967] = "TY0200";
diagnosiscode[1968] = "TY0480";
diagnosiscode[1969] = "TY0600";
diagnosiscode[1970] = "TY1000";
diagnosiscode[1971] = "TY1220";
diagnosiscode[1972] = "TY1410";
diagnosiscode[1973] = "TY1420";
diagnosiscode[1974] = "TY1600";
diagnosiscode[1975] = "TY1700";
diagnosiscode[1976] = "TY2100";
diagnosiscode[1977] = "TY2150";
diagnosiscode[1978] = "TY2300";
diagnosiscode[1979] = "TY2400";
diagnosiscode[1980] = "TY4000";
diagnosiscode[1981] = "TY4100";
diagnosiscode[1982] = "TY4120";
diagnosiscode[1983] = "TY4130";
diagnosiscode[1984] = "TY4220";
diagnosiscode[1985] = "TY4230";
diagnosiscode[1986] = "TY4300";
diagnosiscode[1987] = "TY4310";
diagnosiscode[1988] = "TY4400";
diagnosiscode[1989] = "TY44000";
diagnosiscode[1990] = "TY4440";
diagnosiscode[1991] = "TY4500";
diagnosiscode[1992] = "TY4600";
diagnosiscode[1993] = "TY6000";
diagnosiscode[1994] = "TY6221";
diagnosiscode[1995] = "TY6270";
diagnosiscode[1996] = "TY7000";
diagnosiscode[1997] = "TY7010";
diagnosiscode[1998] = "TY7020";
diagnosiscode[1999] = "TY7040";
diagnosiscode[2000] = "TY8000";
diagnosiscode[2001] = "TY8100";
diagnosiscode[2002] = "TY81000";
diagnosiscode[2003] = "TY8110";
diagnosiscode[2004] = "TY8120";
diagnosiscode[2005] = "TY8300";
diagnosiscode[2006] = "TY8310";
diagnosiscode[2007] = "TY8500";
diagnosiscode[2008] = "TY8600";
diagnosiscode[2009] = "TY8700";
diagnosiscode[2010] = "TY8710";
diagnosiscode[2011] = "TY8800";
diagnosiscode[2012] = "TY8810";
diagnosiscode[2013] = "TY9000";
diagnosiscode[2014] = "TY9100";
diagnosiscode[2015] = "TY9110";
diagnosiscode[2016] = "TY9200";
diagnosiscode[2017] = "TY9400";
diagnosiscode[2018] = "TY9500";
diagnosiscode[2019] = "TY9700";
diagnosiscode[2020] = "TY9800";
diagnosiscode[2021] = "TYY101";
diagnosiscode[2022] = "U.S";
diagnosiscode[2023] = "US";
diagnosiscode[2024] = "USAB";
diagnosiscode[2025] = "W1";
diagnosiscode[2026] = "W2";
diagnosiscode[2027] = "W3";
diagnosiscode[2028] = "WN";
diagnosiscode[2029] = "Y4220";
diagnosiscode[2030] = "Y44000";
				var examcode = new Array();
examcode[1] = "1";
examcode[2] = "10";
examcode[3] = "100";
examcode[4] = "102";
examcode[5] = "103";
examcode[6] = "104";
examcode[7] = "105";
examcode[8] = "106";
examcode[9] = "107";
examcode[10] = "108";
examcode[11] = "109";
examcode[12] = "11";
examcode[13] = "110";
examcode[14] = "111";
examcode[15] = "112";
examcode[16] = "114";
examcode[17] = "115";
examcode[18] = "116";
examcode[19] = "117";
examcode[20] = "118";
examcode[21] = "119";
examcode[22] = "12";
examcode[23] = "120";
examcode[24] = "121";
examcode[25] = "122";
examcode[26] = "123";
examcode[27] = "124";
examcode[28] = "125";
examcode[29] = "126";
examcode[30] = "127";
examcode[31] = "128";
examcode[32] = "129";
examcode[33] = "13";
examcode[34] = "130";
examcode[35] = "131";
examcode[36] = "132";
examcode[37] = "133";
examcode[38] = "134";
examcode[39] = "135";
examcode[40] = "136";
examcode[41] = "137";
examcode[42] = "138";
examcode[43] = "139";
examcode[44] = "14";
examcode[45] = "140";
examcode[46] = "141";
examcode[47] = "142";
examcode[48] = "143";
examcode[49] = "144";
examcode[50] = "145";
examcode[51] = "146";
examcode[52] = "147";
examcode[53] = "148";
examcode[54] = "149";
examcode[55] = "15";
examcode[56] = "150";
examcode[57] = "151";
examcode[58] = "152";
examcode[59] = "153";
examcode[60] = "154";
examcode[61] = "155";
examcode[62] = "156";
examcode[63] = "157";
examcode[64] = "158";
examcode[65] = "159";
examcode[66] = "16";
examcode[67] = "160";
examcode[68] = "161";
examcode[69] = "162";
examcode[70] = "163";
examcode[71] = "164";
examcode[72] = "165";
examcode[73] = "166";
examcode[74] = "167";
examcode[75] = "168";
examcode[76] = "169";
examcode[77] = "17";
examcode[78] = "170";
examcode[79] = "171";
examcode[80] = "172";
examcode[81] = "173";
examcode[82] = "174";
examcode[83] = "175";
examcode[84] = "176";
examcode[85] = "177";
examcode[86] = "178";
examcode[87] = "179";
examcode[88] = "18";
examcode[89] = "180";
examcode[90] = "181";
examcode[91] = "182";
examcode[92] = "183";
examcode[93] = "184";
examcode[94] = "185";
examcode[95] = "186";
examcode[96] = "187";
examcode[97] = "188";
examcode[98] = "189";
examcode[99] = "19";
examcode[100] = "190";
examcode[101] = "191";
examcode[102] = "192";
examcode[103] = "193";
examcode[104] = "194";
examcode[105] = "195";
examcode[106] = "196";
examcode[107] = "197";
examcode[108] = "2";
examcode[109] = "20";
examcode[110] = "21";
examcode[111] = "22";
examcode[112] = "23";
examcode[113] = "24";
examcode[114] = "25";
examcode[115] = "26";
examcode[116] = "27";
examcode[117] = "28";
examcode[118] = "29";
examcode[119] = "3";
examcode[120] = "30";
examcode[121] = "31";
examcode[122] = "32";
examcode[123] = "33";
examcode[124] = "34";
examcode[125] = "35";
examcode[126] = "36";
examcode[127] = "37";
examcode[128] = "38";
examcode[129] = "39";
examcode[130] = "4";
examcode[131] = "40";
examcode[132] = "41";
examcode[133] = "42";
examcode[134] = "43";
examcode[135] = "44";
examcode[136] = "46";
examcode[137] = "47";
examcode[138] = "48";
examcode[139] = "49";
examcode[140] = "5";
examcode[141] = "51";
examcode[142] = "52";
examcode[143] = "53";
examcode[144] = "54";
examcode[145] = "55";
examcode[146] = "56";
examcode[147] = "57";
examcode[148] = "58";
examcode[149] = "59";
examcode[150] = "6";
examcode[151] = "60";
examcode[152] = "61";
examcode[153] = "62";
examcode[154] = "63";
examcode[155] = "64";
examcode[156] = "65";
examcode[157] = "66";
examcode[158] = "67";
examcode[159] = "68";
examcode[160] = "69";
examcode[161] = "7";
examcode[162] = "70";
examcode[163] = "71";
examcode[164] = "72";
examcode[165] = "73";
examcode[166] = "74";
examcode[167] = "75";
examcode[168] = "76";
examcode[169] = "77";
examcode[170] = "78";
examcode[171] = "79";
examcode[172] = "8";
examcode[173] = "80";
examcode[174] = "81";
examcode[175] = "82";
examcode[176] = "83";
examcode[177] = "84";
examcode[178] = "85";
examcode[179] = "86";
examcode[180] = "87";
examcode[181] = "88";
examcode[182] = "89";
examcode[183] = "9";
examcode[184] = "90";
examcode[185] = "91";
examcode[186] = "92";
examcode[187] = "93";
examcode[188] = "94";
examcode[189] = "95";
examcode[190] = "96";
examcode[191] = "97";
examcode[192] = "98";
examcode[193] = "99";
examcode[194] = "A";
examcode[195] = "BFN";
examcode[196] = "BFNP";
examcode[197] = "BFS";
examcode[198] = "BH";
examcode[199] = "BM";
examcode[200] = "BNG";
examcode[201] = "BNGS";
examcode[202] = "C";
examcode[203] = "C2";
examcode[204] = "C31";
examcode[205] = "C32";
examcode[206] = "C35";
examcode[207] = "C41";
examcode[208] = "C42";
examcode[209] = "C45";
examcode[210] = "C48";
examcode[211] = "C5";
examcode[212] = "C6";
examcode[213] = "CC";
examcode[214] = "CCF";
examcode[215] = "CIP";
examcode[216] = "CO";
examcode[217] = "CS";
examcode[218] = "CVS";
examcode[219] = "D";
examcode[220] = "DNA";
examcode[221] = "DS";
examcode[222] = "EM";
examcode[223] = "EM1";
examcode[224] = "EM2";
examcode[225] = "EMH";
examcode[226] = "EML";
examcode[227] = "ER";
examcode[228] = "ERS";
examcode[229] = "FE";
examcode[230] = "FN";
examcode[231] = "FNP";
examcode[232] = "FS";
examcode[233] = "FS1";
examcode[234] = "FS2";
examcode[235] = "FS5";
examcode[236] = "G";
examcode[237] = "GH";
examcode[238] = "GO";
examcode[239] = "GS";
examcode[240] = "GVV";
examcode[241] = "H";
examcode[242] = "I";
examcode[243] = "IC";
examcode[244] = "IC1";
examcode[245] = "IC4";
examcode[246] = "ICB";
examcode[247] = "IF";
examcode[248] = "IP";
examcode[249] = "IP1";
examcode[250] = "IP4";
examcode[251] = "IPB";
examcode[252] = "L";
examcode[253] = "LABU";
examcode[254] = "LB";
examcode[255] = "LC";
examcode[256] = "LL";
examcode[257] = "LN";
examcode[258] = "LW";
examcode[259] = "M";
examcode[260] = "MACP";
examcode[261] = "MB";
examcode[262] = "MICP";
examcode[263] = "NB";
examcode[264] = "NG";
examcode[265] = "NGS";
examcode[266] = "OCC";
examcode[267] = "PCR";
examcode[268] = "PM";
examcode[269] = "PPM";
examcode[270] = "RB";
examcode[271] = "RBC";
examcode[272] = "RES";
examcode[273] = "REV";
examcode[274] = "S";
examcode[275] = "SADD";
examcode[276] = "SAP";
examcode[277] = "SAR";
examcode[278] = "SAUD";
examcode[279] = "SBN";
examcode[280] = "SCB";
examcode[281] = "SCS";
examcode[282] = "SDS";
examcode[283] = "SEM";
examcode[284] = "SEMA";
examcode[285] = "SF";
examcode[286] = "SFE";
examcode[287] = "SFN";
examcode[288] = "SG";
examcode[289] = "SGCB";
examcode[290] = "SH";
examcode[291] = "SK";
examcode[292] = "SM";
examcode[293] = "SPC";
examcode[294] = "SPOC";
examcode[295] = "SQAC";
examcode[296] = "SQAH";
examcode[297] = "SR";
examcode[298] = "SREV";
examcode[299] = "SS";
examcode[300] = "SSR";
examcode[301] = "SSS";
examcode[302] = "SVV";
examcode[303] = "W";
examcode[304] = "X";
examcode[305] = "Z";
				var examtype = new Array();
examtype[1] = "1";
examtype[2] = "A";
examtype[3] = "B";
examtype[4] = "C";
examtype[5] = "D";
examtype[6] = "E";
examtype[7] = "F";
examtype[8] = "G";
examtype[9] = "H";
examtype[10] = "I";
examtype[11] = "J";
examtype[12] = "K";
examtype[13] = "L";
examtype[14] = "M";
examtype[15] = "N";
examtype[16] = "O";
examtype[17] = "P";
examtype[18] = "Q";
				med_attr = document.getElementById("med_select1").value; 
				if (med_attr == 'ward id') {
			 		html_script = "<select id='med_select3'>";
					for(i=0; i<wardid.length; i++) 
						html_script = html_script + "<option value='"+ wardid[i] + "'>" + wardid[i] + "</option>";
					html_script = html_script + "</select>";
					}
				if (med_attr == 'department code') {
			 		html_script = "<select id='med_select3'>";
					for(i=0; i<departmentcode.length; i++) 
						html_script = html_script + "<option value='"+ departmentcode[i] + "'>" + departmentcode[i] + "</option>";
					html_script = html_script + "</select>";
					}
				if (med_attr == 'patient status') {
			 		html_script = "<select id='med_select3'>";
					for(i=0; i<status.length; i++) 
						html_script = html_script + "<option value='"+ status[i] + "'>" + status[i] + "</option>";
					html_script = html_script + "</select>";
					}
				if (med_attr == 'technician code') {
			 		html_script = "<select id='med_select3'>";
					for(i=0; i<techniciancode.length; i++) 
						html_script = html_script + "<option value='"+ techniciancode[i] + "'>" + techniciancode[i] + "</option>";
					html_script = html_script + "</select>";
					}
				if (med_attr == 'attending medical officer') {
			 		html_script = "<select id='med_select3' >";
					for(i=0; i<attendingmedicalofficer.length; i++) 
						html_script = html_script + "<option value='"+ attendingmedicalofficer[i] + "'>" + attendingmedicalofficer[i] + "</option>";
					html_script = html_script + "</select>";
					}
				if (med_attr == 'site code') {
			 		html_script = "<select id='med_select3'>";
					for(i=0; i<sitecode.length; i++) 
						html_script = html_script + "<option value='"+ sitecode[i] + "'>" + sitecode[i] + "</option>";
					html_script = html_script + "</select>";
					}
				if (med_attr == 'report typist code') {
			 		html_script = "<select id='med_select3' >";
					for(i=0; i<reporttypistcode.length; i++) 
						html_script = html_script + "<option value='"+ reporttypistcode[i] + "'>" + reporttypistcode[i] + "</option>";
					html_script = html_script + "</select>";
					}				
				if (med_attr == 'specimen type') {
			 		html_script = "<select id='med_select3' >";
					for(i=0; i<specimentype.length; i++) 
						html_script = html_script + "<option value='"+ specimentype[i] + "'>" + specimentype[i] + "</option>";
					html_script = html_script + "</select>";
					}
				if (med_attr == 'date time status' || med_attr == 'date time request' || med_attr == 'date time exam received') {
					html_script = "<select name='med_select3_y' id='med_select3_y' >";
					for(i=0;i<100;i++) 
						html_script = html_script + "<option value='"+ (i+1970).toString() + "'>" + (i+1970).toString() + "</option>";
					html_script = html_script + "</select>";
					html_script = html_script + "<select name='med_select3_m' id='med_select3_m' >";
					for(i=0;i<12;i++) 
						html_script = html_script + "<option value='"+ (i+1).toString() + "'>" + (i+1).toString() + "</option>";
					html_script = html_script + "</select>";
					html_script = html_script + "<select name='med_select3_d' id='med_select3_d' >";
					for(i=0;i<31;i++) 
						html_script = html_script + "<option value='"+ (i+1).toString() + "'>" + (i+1).toString() + "</option>";
					html_script = html_script + "</select>";					
				}								
				if (med_attr == 'diagnosis code') {
			 		html_script = "<select id='med_select3' >";
					for(i=0; i<diagnosiscode.length; i++) 
						html_script = html_script + "<option value='"+ diagnosiscode[i] + "'>" + diagnosiscode[i] + "</option>";
					html_script = html_script + "</select>";
					}
				if (med_attr == 'exam code') {
			 		html_script = "<select id='med_select3' >";
					for(i=0; i<examcode.length; i++) 
						html_script = html_script + "<option value='"+ examcode[i] + "'>" + examcode[i] + "</option>";
					html_script = html_script + "</select>";
					}
				if (med_attr == 'exam type') {
			 		html_script = "<select id='med_select3' >";
					for(i=0; i<examtype.length; i++) 
						html_script = html_script + "<option value='"+ examtype[i] + "'>" + examtype[i] + "</option>";
					html_script = html_script + "</select>";
					}
				med_start = 1;
				document.getElementById("med_area").innerHTML = html_script;
			}
			
			function show_demo_list() {
				var demo_attr, html_script = "", i=0;
				var hospital_code = new Array();
				hospital_code[0] = 'ARMY';
				hospital_code[1] = 'BANK';
				hospital_code[2] = 'BDI';
				hospital_code[3] = 'BNH';
				hospital_code[4] = 'BOW';
				hospital_code[5] = 'BOWL';
				hospital_code[6] = 'BSH';
				hospital_code[7] = 'CARR';
				hospital_code[8] = 'CHC';
				hospital_code[9] = 'CLT';
				hospital_code[10] = 'CMD';
				hospital_code[11] = 'CS';
				hospital_code[12] = 'D209';
				hospital_code[13] = 'DCDL';
				hospital_code[14] = 'DISC';
				hospital_code[15] = 'FRF';
				hospital_code[16] = 'HOLR';
				hospital_code[17] = 'IPC';
				hospital_code[18] = 'KOS';
				hospital_code[19] = 'LIV';
				hospital_code[20] = 'LSAS';
				hospital_code[21] = 'MEDL';
				hospital_code[22] = 'MEDT';
				hospital_code[23] = 'MH';
				hospital_code[24] = 'MHLP';
				hospital_code[25] = 'MISC';
				hospital_code[26] = 'OPS';
				hospital_code[27] = 'PR';
				hospital_code[28] = 'QVMH';
				hospital_code[29] = 'RAYS';
				hospital_code[30] = 'RCHC';
				hospital_code[31] = 'SEAL';
				hospital_code[32] = 'SHC';
				hospital_code[33] = 'SHP';
				hospital_code[34] = 'SWPH';
				hospital_code[35] = 'SWPS';
				hospital_code[36] = 'SWR';
				hospital_code[37] = 'USR';
				hospital_code[38] = 'WMEA';
				hospital_code[39] = 'WOL';
				var sex = new Array();
sex[0] = "F";
sex[1] = "M";
sex[2] = "U";
				demo_attr = document.getElementById("demo_select1").value;
				
				if (demo_attr == 'age') {
			 		html_script = "<select id='demo_select3'>";
					for(i=0; i<100; i++) 
						html_script = html_script + "<option value='"+ i.toString() + "'>" + i.toString() + "</option>";
					html_script = html_script + "</select>";
					}
				if (demo_attr == 'sex') {
					html_script = "<select id='demo_select3'>";
					for(i=0; i<sex.length; i++)
						html_script = html_script + "<option value='"+ sex[i] + "'>" + sex[i] + "</option>";
					html_script = html_script + "</select>";
					}
				if (demo_attr == 'hospital code') {
					html_script = "<select id='demo_select3'>";
					for(i=0; i<hospital_code.length; i++)
						html_script = html_script + "<option value='"+ hospital_code[i] + "'>" + hospital_code[i] + "</option>";
					html_script = html_script + "</select>";
					}
				demo_start = 1;
				document.getElementById("demo_area").innerHTML = html_script;
			}
			
			function test_list(cond_type) {
				var selectCode = document.getElementById(cond_type+"_select1").value;
			 	x_loadSelectOptions(selectCode, show_list);
			}
			
			function structure_array(python_array) {
				var option_array = new Array(), index_start = 0, index_end = 0;
				while(1) {
					index_start = python_array.indexOf("'");
					index_end = python_array.indexOf(",");
					if (index_end <0) index_end = python_array.indexOf("]");
					if (index_start < 0) break;
					option_array.push(python_array.substring(index_start+1, index_end-1));
					python_array = python_array.replace(python_array.substring(index_start, index_end+1), "");
				}
				return option_array;
			}
			
			function show_list(python_array) {
				var demo_attr, html_script = "", i=0;
				var option_array = new Array();
				demo_attr = document.getElementById("demo_select1").value;
				if (demo_attr == 'age') {
			 		html_script = "<select id='demo_select3'>";
					for(i=0; i<100; i++) 
						html_script = html_script + "<option value='"+ i.toString() + "'>" + i.toString() + "</option>";
					html_script = html_script + "</select>";
					}
				else if (selectList.indexOf(demo_attr) != -1){
					option_array = structure_array(python_array);
					html_script = "<select id='demo_select3'>";
					for(i=0; i<option_array.length; i++)
						html_script = html_script + "<option value='"+ option_array[i] + "'>" + option_array[i] + "</option>";
					html_script = html_script + "</select>";
					}
				demo_start = 1;
				document.getElementById("demo_area").innerHTML = html_script;
				return;
			}
			
			function add_condition(cond_type) {
				var cond_1, cond_2, cond_3, cond_ope, i, cond_error_id, cond_criteria, cond_field_id;
				cond_1 = document.getElementById(cond_type+"_select1").value;
				cond_2 = document.getElementById(cond_type+"_select2").value;
				cond_error_id = cond_type + "_criterias_error";
				cond_field_id = cond_type + "_criterias";
				cond_control = cond_type + "_control";
				if (cond_type == 'demo' && demo_start == 0) {
						document.getElementById(cond_error_id).innerHTML = "Insufficient parameters";
						return;
						}
				else if (cond_type == 'med' && med_start ==0) {
						document.getElementById(cond_error_id).innerHTML = "Insufficient parameters";
						return;
						}
				if (cond_1 == 'date time status' || cond_1 == 'date time request' || cond_1 == 'date time exam received') 
					cond_3 = document.getElementById(cond_type+'_select3_y').value + "-" + document.getElementById(cond_type+'_select3_m').value + "-" + document.getElementById(cond_type+'_select3_d').value;
				else cond_3 = document.getElementById(cond_type+'_select3').value;
				cond_criteria = cond_1 + cond_2 + cond_3;
				if (cond_type == 'demo') {
					for(i=0;i<demo_condition.length;i++)
						if (demo_condition[i] == cond_criteria) {
							document.getElementById(cond_error_id).innerHTML = "Condition already exists";
							return;
						}
					if ((demo_operator.length+1) == demo_condition.length) {
						document.getElementById(cond_error_id).innerHTML = "Missing operator here";
						return;
					}						
					demo_condition.push(cond_criteria);
					display_warning_msg(cond_type);
					display_demo_textarea();
					display_demo_control_panel();
					document.getElementById(cond_error_id).innerHTML = "";
				}
				if (cond_type == 'med') {									
					for(i=0;i<med_condition.length;i++)
						if (med_condition[i] == cond_criteria) {
							document.getElementById(cond_error_id).innerHTML = "Condition already exists";
							return;
						}
					if ((med_operator.length+1) == med_condition.length) {
						document.getElementById(cond_error_id).innerHTML = "Missing operator here";
						return;
					}						
					med_condition.push(cond_criteria);
					display_warning_msg(cond_type);
					display_med_textarea();
					display_med_control_panel();	
					document.getElementById(cond_error_id).innerHTML = "";
				}				
			}
			
			function delete_demo_condition(condition) {
				if (demo_operator.length==0) 
					demo_condition.splice(0,1);
				else if (demo_operator.length < demo_condition.length) {
					if (condition == demo_condition.length-1)
						demo_condition.splice(condition, 1);
					else {
						demo_condition.splice(condition, 1);
						demo_operator.splice(condition, 1);
					}
				}
				else {
					demo_condition.splice(condition, 1);
					demo_operator.splice(condition, 1);
				}
				for(;condition<demo_condition.length && demo_condition.length ==0;i++) {
					demo_condition[condition] = demo_condition[condition+1]
				}
				display_demo_textarea();
				display_demo_control_panel();
				display_warning_msg('demo');
				document.getElementById("demo_criterias_error").innerHTML = "";	
				return;
			}
			
			function delete_med_condition(condition) {
				if (med_operator.length==0) 
					med_condition.splice(0,1);
				else if (med_operator.length < med_condition.length) {
					if (condition == med_condition.length-1)
						med_condition.splice(condition, 1);
					else {
						med_condition.splice(condition, 1);
						med_operator.splice(condition, 1);
					}
				}
				else {
					med_condition.splice(condition, 1);
					med_operator.splice(condition, 1);
				}
				for(;condition<med_condition.length && med_condition.length ==0;i++) {
					med_condition[condition] = med_condition[condition+1]
				}
				display_med_textarea();
				display_med_control_panel();
				display_warning_msg('med');				
				document.getElementById("med_criterias_error").innerHTML = "";	
				return;
			}
			
			function add_operator(cond_type) {
				var cond_error_id = cond_type + "_criterias_error";
				if (cond_type == 'demo') {
					if (demo_condition.length == 0) {
						document.getElementById(cond_error_id).innerHTML = "missing demographic condtion";
						return;
					}	
					else if (demo_condition.length < demo_operator.length + 1) {
						document.getElementById(cond_error_id).innerHTML = "mis-matched operator";
						return;
					}				
				    else {
						var	demo_ope = document.getElementById(cond_type+"_select4").value;
						demo_operator.push(demo_ope);
						display_demo_textarea();
						display_demo_control_panel();
						document.getElementById(cond_error_id).innerHTML = "";
					}
				}
				if (cond_type == 'med') {
					if (med_condition.length == 0) {
						document.getElementById(cond_error_id).innerHTML = "missing medgraphic condtion";
						return;
					}	
					else if (med_condition.length < med_operator.length + 1) {
						document.getElementById(cond_error_id).innerHTML = "mis-matched operator";
						return;
					}				
				    else {
						var	med_ope = document.getElementById(cond_type+"_select4").value;
						med_operator.push(med_ope);
						display_med_textarea();
						display_med_control_panel();
						document.getElementById(cond_error_id).innerHTML = "";
					}
				}
				display_warning_msg(cond_type);
				return;
			}
			
			function display_warning_msg (cond_type) {
				var cond_alarm_id = cond_type + "_alarm";
				if (cond_type == 'med') {
					if (med_operator.length == 0)
						document.getElementById(cond_alarm_id).innerHTML = "";
					else if (med_operator.length == med_condition.length)
						document.getElementById(cond_alarm_id).innerHTML = "<br/>Warning: An unmatched medical condition<br/><br/>";
					else document.getElementById(cond_alarm_id).innerHTML = "";
				}
				if (cond_type == 'demo') {
					if (demo_operator.length == 0)
						document.getElementById(cond_alarm_id).innerHTML = "";
					else if (demo_operator.length == demo_condition.length)
						document.getElementById(cond_alarm_id).innerHTML = "<br/>Warning: An unmatched demographic condition<br/><br/>";
					else document.getElementById(cond_alarm_id).innerHTML = "";
				}
				return;
			}
			
			function display_demo_textarea() {
				var criteria="", i;
				if (demo_condition.length > demo_operator.length) {
					for (i=0;i<demo_operator.length;i++) 
						criteria = criteria + demo_condition[i] + demo_operator[i];
					criteria = criteria + demo_condition[i];
					}
				else if (demo_condition.length == demo_operator.length && demo_operator.length != 0) {
					for (i=0;i<demo_operator.length;i++) 
						criteria = criteria + demo_condition[i] + demo_operator[i];
					}
				else if (demo_condition.length == 0 && demo_operator.length == 0)
					criteria = "";
				document.getElementById("demo_criterias").innerHTML = criteria;
			}
			
			function display_med_textarea() {
				var criteria="", i;
				if (med_condition.length > med_operator.length) {
					for (i=0;i<med_operator.length;i++) 
						criteria = criteria + med_condition[i] + med_operator[i];
					criteria = criteria + med_condition[i];
					}
				else if (med_condition.length == med_operator.length && med_operator.length != 0) {
					for (i=0;i<med_operator.length;i++) 
						criteria = criteria + med_condition[i] + med_operator[i];
					}
				else if (med_condition.length == 0 && med_operator.length == 0)
					criteria = "";
				document.getElementById("med_criterias").innerHTML = criteria;
			}
			
			function display_demo_control_panel() {
				var control_items="", i;
				for(i=0;i<demo_operator.length;i++) {
					if (demo_operator.length==0)
						control_items = control_items + demo_condition[i];
					else	control_items = control_items + demo_condition[i] + demo_operator[i];
					control_items = control_items + "&nbsp;&nbsp;&nbsp;&nbsp;<input type='button' value='delete' onclick='delete_demo_condition(" + i.toString() + ");do_show();'/><br/>"
				}
				if (demo_condition.length > demo_operator.length && demo_operator.length != 0)
					control_items = control_items + demo_condition[i] + "&nbsp;&nbsp;&nbsp;&nbsp;<input type='button' value='delete' onclick='delete_demo_condition(" + i.toString() + ");do_show();'/><br/>"
				else if (demo_operator.length == 0 && demo_condition.length !=0)
					control_items = control_items + demo_condition[i] + "&nbsp;&nbsp;&nbsp;&nbsp;<input type='button' value='delete' onclick='delete_demo_condition(" + i.toString() + ");do_show();'/><br/>"
				else if (demo_operator.length == 0 && demo_condition.length ==0)
					control_items = "";
				document.getElementById("demo_control").innerHTML = control_items;
			}
			
			function display_med_control_panel() {
				var control_items="", i;
				for(i=0;i<med_operator.length;i++) {
					if (med_operator.length==0)
						control_items = control_items + med_condition[i];
					else	control_items = control_items + med_condition[i] + med_operator[i];
					control_items = control_items + "&nbsp;&nbsp;&nbsp;&nbsp;<input type='button' value='delete' onclick='delete_med_condition(" + i.toString() + ");do_show();'/><br/>"
				}
				if (med_condition.length > med_operator.length && med_operator.length != 0)
					control_items = control_items + med_condition[i] + "&nbsp;&nbsp;&nbsp;&nbsp;<input type='button' value='delete' onclick='delete_med_condition(" + i.toString() + ");do_show();'/><br/>"
				else if (med_operator.length == 0 && med_condition.length !=0)
					control_items = control_items + med_condition[i] + "&nbsp;&nbsp;&nbsp;&nbsp;<input type='button' value='delete' onclick='delete_med_condition(" + i.toString() + ");do_show();'/><br/>"
				else if (med_operator.length == 0 && med_condition.length ==0)
					control_items = "";
				document.getElementById("med_control").innerHTML = control_items;
			}
			
			function suggest_diagnosis() {
			 	var diag;
			 	diag = document.getElementById("diag").value;
			 	if (diag == '')
                                    diag = "[DIAGNOSIS]";
			 	x_suggestDiagnosis(diag, suggest_diagnosis_cb);
			}
			
		</script>
	</head>
	
	<body>				
		<div id='banner'>
			<div class='title'>
				Clinical Data Mining Project Group
			</div>
		  	<div> 
				<a href='http://www.usyd.edu.au'>
					 <img src='/images/top_banner_in01.gif' width='227' height='52' alt='The University of Sydney' style='border: 0px;' class='decor' /> 
				</a>
			</div>
		</div>
		<div id='title'>
			CliniDAL User Interface
		</div>
		
		<form name='cdal_form' action="controller.py" method="post">
			<div id='cdal_form'>
				<div id='general'>
					<fieldset>
						<legend>General</legend>
						<div id='general_contents'>
							TOC<br/>
							<select name='toc' id='toc' onclick='do_show()'>
								<option value='SNOMED'>SNOMED</option>
							</select><br/>
							Database<br/>
							<select name='db' id='db' onclick='do_show()'>
								<option value='SWAPS'>SWAPS</option>
							</select><br/>
							<label>Answers Required</label><br/>							
							<div id='showMRNcb' name='showMRNcb'><input type='checkbox' id='showMRN' name='showMRN'>Include patient MRN</input></div>
							<select name='ref_ent' id='ref_ent' onclick='do_show()'>"""
for ref in reference_entities:
	print "<option value='"+ ref + "'>" + ref + "</option>"
print """
							</select>&nbsp;&nbsp;of&nbsp;&nbsp;
							<select name='ans_ent' id='ans_ent' onclick='do_show()'>"""
for ans in value_entities:
	print "<option value='"+ ans + "'>" + ans + "</option>"
print """
							</select><br/>
							<label>Time Period for Medical Conditions <br/></lable>
							<div><label value='From'>From</label>
							<select name='year_from' id='year_from' onclick='validate_global_time();do_show()'>
								"""
for i,year in enumerate(year_array):
	if i ==0:
		print "<option selected='selected' value='"+ year + "'>" + year + "</option>"
	else:
		print "<option value='"+ year + "'>" + year + "</option>"
print """
							</select>
							<select name='month_from' id='month_from' onclick='validate_global_time();do_show();'>
								"""
for i,month in enumerate(mon_array):
	if i ==0:
		print "<option selected='selected' value='"+ month + "'>" + month + "</option>"
	else:
		print "<option value='"+ month + "'>" + month + "</option>"
print """								
							</select>
							<select name='day_from' id='day_from' onclick='validate_global_time();do_show();'>
								"""
for i,day in enumerate(day_array):
	if i ==0:
		print "<option selected='selected' value='"+ day + "'>" + day + "</option>"
	else:
		print "<option value='"+ day + "'>" + day + "</option>"
print """								
							</select><br/>
							</div>
							<div><label value='To'>To&nbsp;&nbsp;&nbsp;&nbsp;</label>
							<select name='year_to' id='year_to' onclick='validate_global_time();do_show()'>
								"""
for i,year in enumerate(year_array):
	if year == strftime("%Y"):
		print "<option selected='selected' value='"+ year + "'>" + year + "</option>"
	else:
		print "<option value='"+ year + "'>" + year + "</option>"
print """
							</select>
							<select name='month_to' id='month_to' onclick='validate_global_time();do_show()'>
								"""
for i,month in enumerate(mon_array):
	if month == strftime("%m"):
		print "<option selected='selected' value='"+ month + "'>" + month + "</option>"
	else:
		print "<option value='"+ month + "'>" + month + "</option>"
print """								
							</select>
							<select name='day_to' id='day_to' onclick='validate_global_time();do_show()'>
								"""
for i,day in enumerate(day_array):
	if day == strftime("%d"):
		print "<option selected='selected' value='"+ day + "'>" + day + "</option>"
	else:
		print "<option value='"+ day + "'>" + day + "</option>"
print """								
							</select><br/>
							</div>
							<div id="global_time_period_error"></div>
							<label>Location for Medical Conditions<label><br/>
							<select name='global_location' id='global_location'>
								<option selected='selected' value='SWAPS' onclick='do_show()'>SWAPS</option>
							</select><br/>
						</div>
					</fieldset>
				</div>
				
				<div id='conditions'>
					<fieldset>
						<legend>Criterias</legend>
						<table>
							<tr>
								<td>
								<label value="Demographic condition">Demographic condition</label><br/>
								<span>
								<select name='demo_select1' id='demo_select1' onclick="show_demo_list();">
								"""
for dem in demo_entities.iterkeys():
	print "<option value='"+ dem + "'>" + dem + "</option>"
print """
								</select>
								</span>
								<span>
								<select name='demo_select2' id='demo_select2' >"""
for comp in comprand_array:
	print "<option value='"+ comp + "'>" + comp + "</option>"
print """
								</select>
								</span>
								<span name='demo_area' id="demo_area">&nbsp;&nbsp;</span>
								<input type='button' id='add_dem' value='add a demo condition' onclick="add_condition('demo');do_show()"/>
								<br/>
								<label value="Logical operator">Logical operator</label>
								<select name='demo_select4' id='demo_select4' >"""
for log_ope in log_ope_array:
	print "<option value='"+ log_ope + "'>" + log_ope + "</option>"
print """
								</select>&nbsp;&nbsp;
								<input type='button' id='add_dem' value='add a logical operator' onclick="add_operator('demo');do_show()"/>
								<br/>
								</td>
							</tr>
							<tr>
								<td><textarea rows='3' cols='60' name='demo_criterias' id='demo_criterias' disabled='disabled'></textarea></td>
							</tr>
							<tr>
								<td><div id='demo_criterias_error'></div></td>
							</tr>
							<tr>
								<td><span id='demo_control'></span>
								<span id='demo_alarm'></span></td>
							</tr>
							
							
							
							
							<tr>
								<td>
								<br/><br/><br/><br/><label value="Medical condition">Medical condition</label><br/>
								<span>
								<select name='med_select1' id='med_select1' onclick='show_med_list();'>
								"""
for med in med_entities.iterkeys():
	print "<option value='"+ med + "'>" + med + "</option>"
print """
								</select>
								</span>
								<span>
								<select name='med_select2' id='med_select2' >"""
for comp in comprand_array:
	print "<option value='"+ comp + "'>" + comp + "</option>"
print """
								</select>
								</span>
								<span name='med_area' id="med_area">&nbsp;&nbsp;</span>
								<input type='button' id='add_dem' value='add a med condition' onclick="add_condition('med');do_show()"/>
								<br/>
								<label value="Logical operator">Logical operator</label>
								<select name='med_select4' id='med_select4' >"""
for log_ope in log_ope_array:
	print "<option value='"+ log_ope + "'>" + log_ope + "</option>"
print """
								</select>&nbsp;&nbsp;
								<input type='button' id='add_dem' value='add a logical operator' onclick="add_operator('med');do_show()"/>
								<br/>
								</td>
							</tr>
							<tr>
								<td><textarea rows='3' cols='60' name='med_criterias' id='med_criterias' disabled='disabled'></textarea></td>
							</tr>
							<tr>
								<td><div id='med_criterias_error'></div></td>
							</tr>
							<tr>
								<td><span id='med_control'></span>
								<span id='med_alarm'></span></td>
							</tr>
						</table>
					</fieldset>
				</div>
				
				<div id='diagnosis_info'>
					<fieldset>
						<legend>Text Diagnosis Information</legend>
						<table>
                                 <tr>
                                   <td width='250px'>Text diagnosis condition</td>
                                 </tr>
                                 <tr>
                                 <td><textarea rows='6' cols='30' name='diag' id='diag' onkeyup='suggest_diagnosis();do_show();' ></textarea></td>
                                 </tr>
                                 <tr>
                                     <td><div id='diag_suggests'></div></td>
                                 </tr>
                        </table>
					</fieldset>
				</div>
			</div>

			<div id='cdal_preview'>
				<fieldset>
					<legend>CliniDAL Preview</legend>
					<div id='cdal_preview_textarea' name='cdal_preview_textarea'>
						<textarea rows='27' cols='56' name='cdal' id='cdal' style='color:navy' >USING [TOC] IN [DATABASE] FIND [ANSWERS REQUIRED] FOR PATIENTS [DEFAULT GLOBAL TIME PERIOD] IN [DEFAULT LOCATION]</textarea>
					</div>
					<div style='text-align: right;'><input type='submit' id='submit_query_btn' value='Search' style='margin-top: 3px;' disabled='disabled'/></div>
				</fieldset>
			</div>
		</form>
	</body>
</html>
""" % locals()
